mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Ensure that telemetry state is always updated after initialising
telemetry so that providers can configure the telemetry port as applicable.
This commit is contained in:
parent
8138bc8cf3
commit
6b1a6332b9
2 changed files with 8 additions and 3 deletions
5
src/mw.c
5
src/mw.c
|
@ -180,9 +180,8 @@ void annexCode(void)
|
|||
LED0_OFF;
|
||||
if (f.ARMED)
|
||||
LED0_ON;
|
||||
// This will switch to/from 9600 or 115200 baud depending on state. Of course, it should only do it on changes. With telemetry_softserial>0 telemetry is always enabled, also see updateTelemetryState()
|
||||
if (feature(FEATURE_TELEMETRY))
|
||||
checkTelemetryState();
|
||||
|
||||
checkTelemetryState();
|
||||
}
|
||||
|
||||
#ifdef LEDRING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue