fix: tud reconnect timeout
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ void pico_cmd_set(uint8_t report_id, uint8_t const *buffer, uint16_t bufsize) {
|
|||||||
if (buffer[0] == 0x03) {
|
if (buffer[0] == 0x03) {
|
||||||
printf("[CMD] Enter tud reconnect func\n");
|
printf("[CMD] Enter tud reconnect func\n");
|
||||||
tud_disconnect();
|
tud_disconnect();
|
||||||
sleep_ms(1000);
|
sleep_ms(150);
|
||||||
tud_connect();
|
tud_connect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user