mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Fix compilation warnings
This commit is contained in:
parent
ecf1007384
commit
28fcf61e2f
1 changed files with 6 additions and 1 deletions
|
@ -356,6 +356,8 @@ void busSelectDevice(const busDevice_t * dev)
|
|||
if (dev->busType == BUSTYPE_SPI && (dev->flags & DEVFLAGS_USE_MANUAL_DEVICE_SELECT)) {
|
||||
spiBusSelectDevice(dev);
|
||||
}
|
||||
#else
|
||||
UNUSED(dev);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -365,6 +367,8 @@ void busDeselectDevice(const busDevice_t * dev)
|
|||
if (dev->busType == BUSTYPE_SPI && (dev->flags & DEVFLAGS_USE_MANUAL_DEVICE_SELECT)) {
|
||||
spiBusDeselectDevice(dev);
|
||||
}
|
||||
#else
|
||||
UNUSED(dev);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -375,6 +379,7 @@ bool busIsBusy(const busDevice_t * dev)
|
|||
#ifdef USE_SPI
|
||||
return spiBusIsBusy(dev);
|
||||
#else
|
||||
UNUSED(dev);
|
||||
return false;
|
||||
#endif
|
||||
|
||||
|
@ -385,4 +390,4 @@ bool busIsBusy(const busDevice_t * dev)
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue