diff options
| author | Reinhard Panhuber <[email protected]> | 2021-04-30 14:56:14 +0200 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2021-04-30 14:56:14 +0200 |
| commit | de933c45bc627f930e1951ee606aa76784af47cf (patch) | |
| tree | d339ed84193f035e1756a540a82c490c21f12843 /src/class/cdc/cdc_device.c | |
| parent | 5f268608d7c15551adddaf20f4b96c0ac1df4633 (diff) | |
Remove all remainings with peek_at
Diffstat (limited to 'src/class/cdc/cdc_device.c')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 0a7691916..f5853fddb 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -146,9 +146,9 @@ uint32_t tud_cdc_n_read(uint8_t itf, void* buffer, uint32_t bufsize) return num_read; } -bool tud_cdc_n_peek(uint8_t itf, int pos, uint8_t* chr) +bool tud_cdc_n_peek(uint8_t itf, uint8_t* chr) { - return tu_fifo_peek_at(&_cdcd_itf[itf].rx_ff, pos, chr); + return tu_fifo_peek(&_cdcd_itf[itf].rx_ff, chr); } void tud_cdc_n_read_flush (uint8_t itf) |
