mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Update samples
This commit is contained in:
parent
1fb2a2f1bd
commit
d7d4e7b527
@ -112,7 +112,7 @@ void echo_all(uint8_t buf[], uint32_t count)
|
||||
if ( web_serial_connected )
|
||||
{
|
||||
tud_vendor_write(buf, count);
|
||||
tud_vendor_flush();
|
||||
tud_vendor_write_flush();
|
||||
}
|
||||
|
||||
// echo to cdc
|
||||
@ -211,7 +211,7 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_requ
|
||||
blink_interval_ms = BLINK_ALWAYS_ON;
|
||||
|
||||
tud_vendor_write_str("\r\nWebUSB interface connected\r\n");
|
||||
tud_vendor_flush();
|
||||
tud_vendor_write_flush();
|
||||
}else
|
||||
{
|
||||
blink_interval_ms = BLINK_MOUNTED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user