Working as expected, need to update display
This commit is contained in:
parent
188b462540
commit
cf4696d094
@ -613,7 +613,7 @@ class MacroPadServer:
|
|||||||
if os.path.exists(image_path):
|
if os.path.exists(image_path):
|
||||||
try:
|
try:
|
||||||
with open(image_path, 'rb') as f:
|
with open(image_path, 'rb') as f:
|
||||||
image_data =f.read
|
image_data =f.read()
|
||||||
image_size = len(image_data)
|
image_size = len(image_data)
|
||||||
client_socket.send(str(image_size).encode('utf-8'))
|
client_socket.send(str(image_size).encode('utf-8'))
|
||||||
client_socket.recv(1024) # Wait for acknowledgment
|
client_socket.recv(1024) # Wait for acknowledgment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user