Skip to content

Commit 2a1e045

Browse files
Fixed bug. When sending the files, they were not being deleted, which caused the memory on the flash drive not to be freed.
1 parent 91eecf2 commit 2a1e045

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

camera.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def rec (camera,path,ts,regName,regDelName):
3737
camera.exposure_mode = ('night')
3838
camera.clock_mode = ('raw')
3939
camera.framerate = (5)
40-
camera.start_preview()
40+
#camera.start_preview()
4141
camera.annotate_text = timestamp()
4242
print(timestamp() + " Grabando archivo: " + recName)
4343
camera.start_recording(pathRecName,sps_timing=True,bitrate=10000000)
@@ -62,6 +62,8 @@ def fileManagSend(f,server,user,origin,destination,regDelName):
6262
sshClient = sshLogin(server,user)
6363
scptransfer(sshClient,origin,destination,regDelName,f)
6464
sshLogout(sshClient)
65+
removeFile(piPath,REGISTER_NAME_TO_DELATE)
66+
6567

6668
if __name__ == "__main__":
6769

0 commit comments

Comments
 (0)