Skip to content

Commit d7d4e7b

Browse files
committed
Update samples
1 parent 1fb2a2f commit d7d4e7b

File tree

1 file changed

+2
-2
lines changed
  • examples/device/webusb_serial/src

1 file changed

+2
-2
lines changed

examples/device/webusb_serial/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void echo_all(uint8_t buf[], uint32_t count)
112112
if ( web_serial_connected )
113113
{
114114
tud_vendor_write(buf, count);
115-
tud_vendor_flush();
115+
tud_vendor_write_flush();
116116
}
117117

118118
// echo to cdc
@@ -211,7 +211,7 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_requ
211211
blink_interval_ms = BLINK_ALWAYS_ON;
212212

213213
tud_vendor_write_str("\r\nWebUSB interface connected\r\n");
214-
tud_vendor_flush();
214+
tud_vendor_write_flush();
215215
}else
216216
{
217217
blink_interval_ms = BLINK_MOUNTED;

0 commit comments

Comments
 (0)