mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Fix arm/disarm/arm bug when using shared msp/telemetry ports.
All msp ports are now re-initialised when disarming.
Bug wa introduced by c06fd78b83
- see
#144.
Runtime serial port scenario should not have been erased.
Fixes #144 and #155. Cleanup #125.
This commit is contained in:
parent
2d7184b25b
commit
db36cfe12e
6 changed files with 21 additions and 7 deletions
|
@ -615,7 +615,11 @@ void mspInit(serialConfig_t *serialConfig)
|
|||
activeBoxIds[activeBoxIdCount++] = BOXSONAR;
|
||||
}
|
||||
|
||||
mspReset(serialConfig);
|
||||
}
|
||||
|
||||
void mspReset(serialConfig_t *serialConfig)
|
||||
{
|
||||
memset(mspPorts, 0x00, sizeof(mspPorts));
|
||||
|
||||
openAllMSPSerialPorts(serialConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue