fix strict prototype

This commit is contained in:
hathach 2020-07-29 16:59:07 +07:00
parent 78f1576e93
commit 5af08e2ffc
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}