Fix being unable to change port function of serial port during runtime.
Closes #144. Thanks @frank26080115
This commit is contained in:
parent
3f59f6ed8d
commit
c06fd78b83
|
@ -372,6 +372,8 @@ void endSerialPortFunction(serialPort_t *port, serialPortFunction_e function)
|
|||
serialPortFunction_t *serialPortFunction = findSerialPortFunctionByPort(port);
|
||||
|
||||
serialPortFunction->currentFunction = FUNCTION_NONE;
|
||||
serialPortFunction->scenario = SCENARIO_UNUSED;
|
||||
serialPortFunction->port = NULL;
|
||||
}
|
||||
|
||||
functionConstraint_t *getConfiguredFunctionConstraint(serialPortFunction_e function)
|
||||
|
|
Loading…
Reference in New Issue