index for fsio_analog_input
This commit is contained in:
parent
0b5bb7c0cf
commit
cfcf1cc7b3
|
@ -281,10 +281,12 @@ bool LECalculator::processElement(LEElement *element DECLARE_ENGINE_PARAMETER_SU
|
|||
}
|
||||
break;
|
||||
case LE_METHOD_FSIO_DIGITAL_INPUT:
|
||||
// todo: implement code for digital inout!!!
|
||||
// todo: implement code for digital input!!!
|
||||
case LE_METHOD_FSIO_ANALOG_INPUT:
|
||||
// todo: start taking index parameter!!!
|
||||
push(element->action, getVoltage("fsio", engineConfiguration->fsioAdc[0] PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
{
|
||||
int index = clampF(0, pop(LE_METHOD_FSIO_ANALOG_INPUT), FSIO_ANALOG_INPUT_COUNT - 1);
|
||||
push(element->action, getVoltage("fsio", engineConfiguration->fsioAdc[index] PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
}
|
||||
break;
|
||||
case LE_METHOD_KNOCK:
|
||||
push(element->action, ENGINE(knockCount));
|
||||
|
|
|
@ -717,6 +717,6 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20200601;
|
||||
return 20200602;
|
||||
}
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
|
|
Loading…
Reference in New Issue