mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
add log2mem functionality and refracture
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import os
|
||||
from threading import Lock
|
||||
|
||||
frame_path = '/root/pwnagotchi.png'
|
||||
frame_path = '/var/tmp/pwnagotchi/pwnagotchi.png'
|
||||
frame_format = 'PNG'
|
||||
frame_ctype = 'image/png'
|
||||
frame_lock = Lock()
|
||||
@ -8,5 +9,7 @@ frame_lock = Lock()
|
||||
|
||||
def update_frame(img):
|
||||
global frame_lock, frame_path, frame_format
|
||||
if not os.path.exists(os.path.basename(frame_path)):
|
||||
os.makedirs(os.path.basename(frame_path))
|
||||
with frame_lock:
|
||||
img.save(frame_path, format=frame_format)
|
||||
|
Reference in New Issue
Block a user