commit e1a2b52f9f8011dee1f43701b6fc0c43dee35f85
parent a77c7ce6f984100f1679317a10423e868ce11d8e
Author: rob <rob@tarina.org>
Date: Tue, 13 Dec 2022 21:18:58 +0200
buu
Diffstat:
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/tarinactrl.py b/tarinactrl.py
@@ -135,13 +135,11 @@ def main(serverstatus):
sendtocamera(i,port,'PLACEHOLDER')
a=a+1
elif event == "KEY_ENTER" and menu[selected] == 'Sync SCENE':
- a=0
- for i in cameras:
- if i not in camerasoff:
- if a != 0:
- if recording == None:
- sendtocamera(cameras[0],port,'SYNCIP:'+i)
- a=a+1
+ for p in cameras[1:]:
+ if p not in camerasoff:
+ if recording == None:
+ sendtocamera(cameras[0],port,'SYNCIP:'+p)
+ time.sleep(1)
elif event == "KEY_ENTER" and menu[selected]=='New SCENE':
a=0
for i in cameras: