LUA to read if USB is connected or not. #3891
This commit is contained in:
parent
ef8e793aba
commit
b00c39df3e
|
@ -650,6 +650,10 @@ static void updateIgnition(int rpm) {
|
|||
}
|
||||
|
||||
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.isFuelPumpOn = enginePins.fuelPumpRelay.getLogicValue();
|
||||
engine->outputChannels.isFanOn = enginePins.fanRelay.getLogicValue();
|
||||
|
|
Loading…
Reference in New Issue