commit de1b201129ae15e33a7ff873c42c15b88bd3f45e
parent 0c7724512e90b67893a7c1b74c767ffc383dfe1b
Author: rob <rob@tarina.org>
Date: Sun, 24 Mar 2024 23:05:05 +0000
now works changing usb drives
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/gonzopi.py b/gonzopi.py
@@ -813,9 +813,15 @@ def main():
vumetermessage('checking usb mount...')
if os.path.exists('/dev/sda1') == False:
os.system('sudo umount /media/usb0')
+ del storagedrives[1]
+ dsk=0
+ time.sleep(1)
filmfolderusb=usbfilmfolder()
if filmfolderusb:
filmfolder=filmfolderusb
+ if dsk < 1:
+ storagedrives.append(['usb0',filmfolder])
+ dsk=1
else:
camera_model, camera_revision , filmfolder = getconfig(camera)
if os.path.isdir(filmfolder) == False: