Update samples
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user