Quantcast
Viewing all articles
Browse latest Browse all 4832

Automation, sensing and robotics • Re: Rs232 command change between 2 gears project

perhaps you change the line
uart1=UART(...) to
uart1=UART(..., timeout =-1, timeout_char=-1)

and, also possible, add a line after the read()
c=uart1.read(1)
if len(c) == 0: continue

ensure proper indentation

not tested.

Statistics: Posted by ghp — Tue Jan 07, 2025 7:19 pm



Viewing all articles
Browse latest Browse all 4832

Trending Articles