mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue