Skip to content

Commit 5775eb4

Browse files
authored
Merge pull request #6715 from tannewt/usb_connect_title_bar
Request a title bar update on USB cdc connect
2 parents f1826b0 + 401c269 commit 5775eb4

File tree

1 file changed

+4
-0
lines changed
  • supervisor/shared/usb

1 file changed

+4
-0
lines changed

supervisor/shared/usb/usb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "supervisor/port.h"
3232
#include "supervisor/serial.h"
3333
#include "supervisor/usb.h"
34+
#include "supervisor/shared/title_bar.h"
3435
#include "supervisor/shared/workflow.h"
3536
#include "shared/runtime/interrupt_char.h"
3637
#include "shared/readline/readline.h"
@@ -242,6 +243,9 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) {
242243
if (coding.bit_rate == 1200) {
243244
reset_to_bootloader();
244245
}
246+
} else {
247+
// We are connected, let's request a title bar update.
248+
supervisor_title_bar_request_update(true);
245249
}
246250
}
247251

0 commit comments

Comments
 (0)