Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 58c4355

Browse files
committed
Changing program_serial command assignment
The previous call to bash using 'sh' limits what the given bash script can execute. Changing it to 'bash' (superset of 'sh') allows for a greater range of functions available to use in executed script.
1 parent aa21ff8 commit 58c4355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def killall_avrdude():
270270
def program_serial():
271271
serial_hopeful = False
272272
print "serial programming beginning..."
273-
command = "sh /home/pi/SERIAL_UPLOAD/pi_serial_upload.sh"
273+
command = "bash /home/pi/SERIAL_UPLOAD/pi_serial_upload.sh"
274274
import subprocess
275275
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
276276
#output = process.communicate()[0]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /