we have centralized SPI management
This commit is contained in:
parent
3bff1ea14d
commit
f59c318df2
|
@ -93,7 +93,8 @@ void initPotentiometers() {
|
||||||
efiPrintf("digiPot spi disabled");
|
efiPrintf("digiPot spi disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
turnOnSpi(engineConfiguration->digitalPotentiometerSpiDevice);
|
// todo: we have centralized SPI management see other usages of 'turnOnSpi'
|
||||||
|
//turnOnSpi(engineConfiguration->digitalPotentiometerSpiDevice);
|
||||||
|
|
||||||
for (int i = 0; i < DIGIPOT_COUNT; i++) {
|
for (int i = 0; i < DIGIPOT_COUNT; i++) {
|
||||||
brain_pin_e csPin = engineConfiguration->digitalPotentiometerChipSelect[i];
|
brain_pin_e csPin = engineConfiguration->digitalPotentiometerChipSelect[i];
|
||||||
|
|
Loading…
Reference in New Issue