mirror of
https://github.com/DanielPollithy/bluetooth_drone.git
synced 2025-10-16 11:45:38 +00:00
d3 update
This commit is contained in:
parent
11b0a93260
commit
ef902017d7
@ -2,10 +2,10 @@ from subprocess import Popen
|
||||
|
||||
|
||||
def switch_off():
|
||||
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'off'])
|
||||
popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'off'])
|
||||
popen.wait()
|
||||
|
||||
|
||||
def switch_on():
|
||||
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'on'])
|
||||
popen = Popen(['sudo', '/home/linaro/bluetooth_drone/touch_switch', 'on'])
|
||||
popen.wait()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user