gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit ecec150cba55db0d5e35b9a750933a7ad00b8e5b
parent 3992955dd589003c196703768cc9b604f24e3a96
Author: rbckman <rob@tarina.org>
Date:   Thu,  9 Oct 2025 09:02:43 +0100

fixed beep bug

Diffstat:
Mgonzopi.py | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -1580,7 +1580,7 @@ def main(): else: pressed = 'record_now' else: - pressed = 'record' + pressed = 'retake_now' print('exhausted from all beepings') elif 'CAMERA:' in pressed: newselected_maybe=int(pressed.split(':')[1]) @@ -1600,14 +1600,17 @@ def main(): takes=1 shots=shots+1 elif pressed == "retake" and takes > 0: - if shot == shots+1 and takes == 0: - shot = shots - takes = counttakes(filmname, filmfolder, scene, shot) + takes = counttakes(filmname, filmfolder, scene, shot) take = takes+1 takes=take elif pressed == "retake" and takes == 0: - take=1 - takes=1 + if shot > 1: + shot = shot - 1 + takes = counttakes(filmname, filmfolder, scene, shot) + take = takes+1 + takes=take + #take=1 + #takes=1 elif pressed == 'record_now': shot=shots+1 take=1