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
ea26442ae3
commit
11b0a93260
@ -2,10 +2,10 @@ from subprocess import Popen
|
|||||||
|
|
||||||
|
|
||||||
def switch_off():
|
def switch_off():
|
||||||
popen = Popen(['sudo', './touch_switch', 'off'])
|
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'off'])
|
||||||
popen.wait()
|
popen.wait()
|
||||||
|
|
||||||
|
|
||||||
def switch_on():
|
def switch_on():
|
||||||
popen = Popen(['sudo', './touch_switch', 'on'])
|
popen = Popen(['sudo', 'bash', '/home/linaro/bluetooth_drone/touch_switch', 'on'])
|
||||||
popen.wait()
|
popen.wait()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user