sensor_checker: fix visibility of TunerStudioOutputChannels
TunerStudioOutputChannels *state is used even BOARD_EXT_GPIOCHIPS is zero
This commit is contained in:
parent
bc4fcf0a4a
commit
df2de55a3a
|
@ -198,11 +198,11 @@ void SensorChecker::onSlowCallback() {
|
|||
check(SensorType::FuelEthanolPercent);
|
||||
|
||||
#if EFI_PROD_CODE
|
||||
TunerStudioOutputChannels *state = getTunerStudioOutputChannels();
|
||||
// only bother checking these if we have GPIO chips actually capable of reporting an error
|
||||
#if BOARD_EXT_GPIOCHIPS > 0
|
||||
TunerStudioOutputChannels *state = getTunerStudioOutputChannels();
|
||||
// Check injectors
|
||||
#if EFI_ENGINE_CONTROL
|
||||
// Check injectors
|
||||
int unhappyInjector = 0;
|
||||
for (size_t i = 0; i < efi::size(enginePins.injectors); i++) {
|
||||
InjectorOutputPin& pin = enginePins.injectors[i];
|
||||
|
|
Loading…
Reference in New Issue