BUG: FSIO logic requires a pin to calculate fix #933

This commit is contained in:
rusefi 2019-09-18 23:22:15 -04:00
parent ddbd96ba72
commit 8dcb2d9690
2 changed files with 4 additions and 3 deletions

View File

@ -259,7 +259,8 @@ void applyFsioConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
for (int i = 0; i < FSIO_COMMAND_COUNT; i++) {
const char *formula = config->fsioFormulas[i];
LEElement *logic = userPool.parseExpression(formula);
if (logic == NULL) {
brain_pin_e brainPin = CONFIGB(fsioOutputPins)[i];
if (brainPin != GPIO_UNASSIGNED && logic == NULL) {
warning(CUSTOM_FSIO_PARSING, "parsing [%s]", formula);
}

View File

@ -73,5 +73,5 @@
// Human-readable: fsio_table (3, rpm, map) / 100
#define BOOST_CONTROLLER "3 rpm map fsio_table 100 /"
// Human-readable: if(fsio_input (0) > 20, 0, 10)
#define ANALOG_CONDITION "0 fsio_input 20 > 0 10 if"
// Human-readable: if(fsio_setting (0) > 20, 0, 10)
#define ANALOG_CONDITION "0 fsio_setting 20 > 0 10 if"