From b5c27f01a6991af55354d4ada606df45907e59ff Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 26 Feb 2023 18:06:11 -0500 Subject: [PATCH] we have centralized SPI management? do we? --- firmware/hw_layer/sensors/accelerometer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/hw_layer/sensors/accelerometer.cpp b/firmware/hw_layer/sensors/accelerometer.cpp index 9945f0657f..af703645ad 100644 --- a/firmware/hw_layer/sensors/accelerometer.cpp +++ b/firmware/hw_layer/sensors/accelerometer.cpp @@ -74,7 +74,8 @@ void initAccelerometer() { return; } - turnOnSpi(engineConfiguration->accelerometerSpiDevice); + // todo: we have centralized SPI management see other usages of 'turnOnSpi' + //turnOnSpi(engineConfiguration->accelerometerSpiDevice); spiStart(driver, &accelerometerCfg); initSpiCs((SPIConfig *)driver->config, engineConfiguration->LIS302DLCsPin);