accelerometers: hide variables under guard
This commit is contained in:
parent
eca245d718
commit
89e17fe083
|
@ -210,10 +210,10 @@ private:
|
|||
static AccelController instance;
|
||||
|
||||
void initAccelerometer() {
|
||||
#if HAL_USE_SPI
|
||||
static SPIDriver *bus;
|
||||
msg_t ret = MSG_RESET;
|
||||
|
||||
#if HAL_USE_SPI
|
||||
if (!isBrainPinValid(engineConfiguration->accelerometerCsPin))
|
||||
return; // not used
|
||||
|
||||
|
|
Loading…
Reference in New Issue