Skip to content

Commit c47f249

Browse files
For Travis test we must exit(0) when Arduino not found.
1 parent dd573ed commit c47f249

6 files changed

+6
-6
lines changed

Arduino_PyQt_demo_with_multithreading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def DAQ_function():
441441
if not (ard.is_alive):
442442
print("\nCheck connection and try resetting the Arduino.")
443443
print("Exiting...\n")
444-
sys.exit(1)
444+
sys.exit(0)
445445

446446
# --------------------------------------------------------------------------
447447
# Create application and main window

Arduino_PyQt_demo_with_multithreading__LARGE_TEXT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def DAQ_function():
470470
if not (ard.is_alive):
471471
print("\nCheck connection and try resetting the Arduino.")
472472
print("Exiting...\n")
473-
sys.exit(1)
473+
sys.exit(0)
474474

475475
# --------------------------------------------------------------------------
476476
# Create application and main window

Arduino_PyQt_demo_with_multithreading__minimalistic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def DAQ_function():
193193
if not (ard.is_alive):
194194
print("\nCheck connection and try resetting the Arduino.")
195195
print("Exiting...\n")
196-
sys.exit(1)
196+
sys.exit(0)
197197

198198
# --------------------------------------------------------------------------
199199
# Create application and main window

Arduino_PyQt_demo_without_multithreading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def DAQ_function():
414414
if not (ard.is_alive):
415415
print("\nCheck connection and try resetting the Arduino.")
416416
print("Exiting...\n")
417-
sys.exit(1)
417+
sys.exit(0)
418418

419419
# --------------------------------------------------------------------------
420420
# Create application and main window

foo_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def DAQ_function():
135135
if not (ard.is_alive):
136136
print("\nCheck connection and try resetting the Arduino.")
137137
print("Exiting...\n")
138-
sys.exit(1)
138+
sys.exit(0)
139139

140140
# Create application
141141
app = QtCore.QCoreApplication(sys.argv)

foo_baz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def DAQ_function():
137137
if not (ard.is_alive):
138138
print("\nCheck connection and try resetting the Arduino.")
139139
print("Exiting...\n")
140-
sys.exit(1)
140+
sys.exit(0)
141141

142142
# Create application
143143
app = QtCore.QCoreApplication(sys.argv)

0 commit comments

Comments
 (0)