mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Lower cpu usage
This commit is contained in:
@@ -105,7 +105,6 @@ def write(text : str, write : bool):
|
|||||||
def main():
|
def main():
|
||||||
while True:
|
while True:
|
||||||
# Read a line from the serial port
|
# Read a line from the serial port
|
||||||
if ser.in_waiting > 0:
|
|
||||||
line = ser.readline().decode('utf-8').strip()
|
line = ser.readline().decode('utf-8').strip()
|
||||||
if line.startswith("HTTP_REQUEST") or line.startswith("HTTP_BINARY"):
|
if line.startswith("HTTP_REQUEST") or line.startswith("HTTP_BINARY"):
|
||||||
print(f">>> {line}")
|
print(f">>> {line}")
|
||||||
|
|||||||
Reference in New Issue
Block a user