commit a1cb4fa1b8568aa9f4b0dfd21ce5453329f6e335
parent 3a37b09b328056a0fc47677f513b234aa0dfa48d
Author: rob <rob@tarina.org>
Date: Mon, 19 Dec 2022 21:16:48 +0200
just
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tarinactrl.py b/tarinactrl.py
@@ -72,7 +72,8 @@ def printmenu(recording,selected,cameras,camselected,serverstatus,rectime):
if serverstatus != None:
print(serverstatus[0])
print(serverstatus[1])
- print("rectime lag: "+str((rectime-serverstatus[2])*1000))
+ if rectime:
+ print("rectime lag: "+str((rectime-serverstatus[2])*1000))
if recording != None:
print("Camera "+ str(recording)+" is recording! Shut up. And Action!")
a=0
@@ -177,7 +178,7 @@ def main(serverstatus):
rectime=time.time()
elif a == mastersound:
sendtocamera(i,port,'STOP')
- if recording !=None:
+ if recording ==None:
time.sleep(sleep)
sendtocamera(i,port,'RECSOUND')
else: