diff options
| author | Edvin <[email protected]> | 2025-05-06 12:17:53 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-05-06 12:17:53 +0200 |
| commit | 8a4fd87622cc13ca4f501b98502585ca2b2aaddd (patch) | |
| tree | 985659b1c1efa994f43ef93be739fa1f9b4c7f66 /DWM.py | |
| parent | 66557fa2666712e205924544e60afe46c13b0a24 (diff) | |
Hopefully fixed DWM reading incorrect values at first
Diffstat (limited to 'DWM.py')
| -rwxr-xr-x | DWM.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -77,6 +77,9 @@ with serial.Serial('/dev/ttyACM0', 115200, timeout = 1) as s: sleep(0.1) s.write(b"\r") sleep(0.1) + + for i in range(10): + s.readline() while True: dstr = s.readline().decode('utf-8').strip('\n') |
