modifications on the string sent to the streamer, streaming from the webapp now works
This commit is contained in:
@@ -104,7 +104,7 @@ def getText():
|
||||
gcode_file.write(gcode_output)
|
||||
|
||||
print("Streaming ...")
|
||||
stream_gcode_websocket(gcode_output) #envoi du gcode généré au plotter
|
||||
stream_gcode_websocket(gcode_output.split("\n")) #envoi du gcode généré au plotter
|
||||
|
||||
print(f"G-code saved to {gcode_filename}")
|
||||
else:
|
||||
|
||||
@@ -63,6 +63,7 @@ def receiver():
|
||||
else:
|
||||
response = str(l, 'utf-8')
|
||||
# print("Received:", response)
|
||||
if "PING" not in response:
|
||||
response_queue.put(response) # Add response to the queue
|
||||
except Exception as e:
|
||||
print("Error in receiver:", e)
|
||||
|
||||
Reference in New Issue
Block a user