1 parent 355abc8 commit d012fd1Copy full SHA for d012fd1
1 file changed
supervisor/shared/serial.c
@@ -48,6 +48,9 @@ bool serial_bytes_available(void) {
48
}
49
50
void serial_write_substring(const char* text, uint32_t length) {
51
+ if (!tud_cdc_connected()) {
52
+ return;
53
+ }
54
uint32_t count = 0;
55
while (count < length) {
56
count += tud_cdc_write(text + count, length - count);
0 commit comments