Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

General • Re: serial port flip-flopping on Linux.

$
0
0
Ah, it seems I may have made a programme change . I had reduced the delay() to 1000 to speed up booting. Giving it 3s seems to let udev and the IDE to get their act together. Some initial testing seems to show this is now staying on the same /dev/ttyACM as it did before.
Serial.begin(115200); // USB baud rate irrel over ACM0
while(!Serial) {};
delay(3000); // give time for udev to pick up new ACM port and IDE to react before spewing data
Serial.printf("\n");
That may be useful to know.

Statistics: Posted by pie_face — Wed Aug 21, 2024 6:54 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles