BUG: FSIO logic requires a pin to calculate fix #933
This commit is contained in:
parent
ddbd96ba72
commit
8dcb2d9690
|
@ -259,7 +259,8 @@ void applyFsioConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
for (int i = 0; i < FSIO_COMMAND_COUNT; i++) {
|
for (int i = 0; i < FSIO_COMMAND_COUNT; i++) {
|
||||||
const char *formula = config->fsioFormulas[i];
|
const char *formula = config->fsioFormulas[i];
|
||||||
LEElement *logic = userPool.parseExpression(formula);
|
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);
|
warning(CUSTOM_FSIO_PARSING, "parsing [%s]", formula);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,5 +73,5 @@
|
||||||
// Human-readable: fsio_table (3, rpm, map) / 100
|
// Human-readable: fsio_table (3, rpm, map) / 100
|
||||||
#define BOOST_CONTROLLER "3 rpm map fsio_table 100 /"
|
#define BOOST_CONTROLLER "3 rpm map fsio_table 100 /"
|
||||||
|
|
||||||
// Human-readable: if(fsio_input (0) > 20, 0, 10)
|
// Human-readable: if(fsio_setting (0) > 20, 0, 10)
|
||||||
#define ANALOG_CONDITION "0 fsio_input 20 > 0 10 if"
|
#define ANALOG_CONDITION "0 fsio_setting 20 > 0 10 if"
|
||||||
|
|
Loading…
Reference in New Issue