1
0
Fork 0
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:
Michel Pastor 2019-01-06 23:18:45 +01:00
parent ecf1007384
commit 28fcf61e2f

View file

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