mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Don't allow softserial ports to be opened if softserial isn't enabled
This commit is contained in:
parent
8a9d2e3708
commit
86ddf27515
3 changed files with 19 additions and 4 deletions
|
@ -69,6 +69,7 @@ typedef struct serialPortUsage_s {
|
|||
serialPortIdentifier_e identifier;
|
||||
serialPort_t *serialPort;
|
||||
serialPortFunction_e function;
|
||||
bool enabled;
|
||||
} serialPortUsage_t;
|
||||
|
||||
serialPort_t *findSharedSerialPort(uint16_t functionMask, serialPortFunction_e sharedWithFunction);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue