making 'isUsbConnected' visible outside of EFI_SHAFT_POSITION_INPUT guard
only:small-can-board
This commit is contained in:
parent
c33a099c4c
commit
105dc1b588
|
@ -575,10 +575,6 @@ static void updateIgnition(int rpm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void updateFlags() {
|
static void updateFlags() {
|
||||||
#if EFI_USB_SERIAL
|
|
||||||
engine->outputChannels.isUsbConnected = is_usb_serial_ready();
|
|
||||||
#endif // EFI_USB_SERIAL
|
|
||||||
|
|
||||||
engine->outputChannels.isMainRelayOn = enginePins.mainRelay.getLogicValue();
|
engine->outputChannels.isMainRelayOn = enginePins.mainRelay.getLogicValue();
|
||||||
engine->outputChannels.isFanOn = enginePins.fanRelay.getLogicValue();
|
engine->outputChannels.isFanOn = enginePins.fanRelay.getLogicValue();
|
||||||
engine->outputChannels.isFan2On = enginePins.fanRelay2.getLogicValue();
|
engine->outputChannels.isFan2On = enginePins.fanRelay2.getLogicValue();
|
||||||
|
@ -604,6 +600,9 @@ static void updateFlags() {
|
||||||
// As of 2022 it's preferred to leverage LiveData where all state is exposed
|
// As of 2022 it's preferred to leverage LiveData where all state is exposed
|
||||||
void updateTunerStudioState() {
|
void updateTunerStudioState() {
|
||||||
TunerStudioOutputChannels *tsOutputChannels = &engine->outputChannels;
|
TunerStudioOutputChannels *tsOutputChannels = &engine->outputChannels;
|
||||||
|
#if EFI_USB_SERIAL
|
||||||
|
engine->outputChannels.isUsbConnected = is_usb_serial_ready();
|
||||||
|
#endif // EFI_USB_SERIAL
|
||||||
#if EFI_SHAFT_POSITION_INPUT
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
int rpm = Sensor::get(SensorType::Rpm).value_or(0);
|
int rpm = Sensor::get(SensorType::Rpm).value_or(0);
|
||||||
#else /* EFI_SHAFT_POSITION_INPUT */
|
#else /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
Loading…
Reference in New Issue