diff options
| author | hathach <[email protected]> | 2020-07-29 16:59:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-07-29 16:59:07 +0700 |
| commit | 5af08e2ffc47c6a0c90f678edd04ca57480a1747 (patch) | |
| tree | 34c23656d0b32243d8ba16bb805275c33f5690be /src | |
| parent | 78f1576e933c92d467b36b4fb699e23de67708ab (diff) | |
fix strict prototype
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/espressif/esp32s2/dcd_esp32s2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/espressif/esp32s2/dcd_esp32s2.c b/src/portable/espressif/esp32s2/dcd_esp32s2.c index b4d869517..755e06701 100644 --- a/src/portable/espressif/esp32s2/dcd_esp32s2.c +++ b/src/portable/espressif/esp32s2/dcd_esp32s2.c @@ -78,7 +78,8 @@ static xfer_ctl_t xfer_status[EP_MAX][2]; static uint8_t _allocated_fifos = 1; //FIFO0 is always in use // Will either return an unused FIFO number, or 0 if all are used. -static uint8_t get_free_fifo(){ +static uint8_t get_free_fifo(void) +{ if (_allocated_fifos < EP_FIFO_NUM) return _allocated_fifos++; return 0; } |
