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