mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +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)) {
|
if (dev->busType == BUSTYPE_SPI && (dev->flags & DEVFLAGS_USE_MANUAL_DEVICE_SELECT)) {
|
||||||
spiBusSelectDevice(dev);
|
spiBusSelectDevice(dev);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED(dev);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -365,6 +367,8 @@ void busDeselectDevice(const busDevice_t * dev)
|
||||||
if (dev->busType == BUSTYPE_SPI && (dev->flags & DEVFLAGS_USE_MANUAL_DEVICE_SELECT)) {
|
if (dev->busType == BUSTYPE_SPI && (dev->flags & DEVFLAGS_USE_MANUAL_DEVICE_SELECT)) {
|
||||||
spiBusDeselectDevice(dev);
|
spiBusDeselectDevice(dev);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED(dev);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -375,6 +379,7 @@ bool busIsBusy(const busDevice_t * dev)
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
return spiBusIsBusy(dev);
|
return spiBusIsBusy(dev);
|
||||||
#else
|
#else
|
||||||
|
UNUSED(dev);
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -385,4 +390,4 @@ bool busIsBusy(const busDevice_t * dev)
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue