File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ static uint8_t i2c_error_activity[PIOS_I2C_ERROR_COUNT_NUMELEM];
131131
132132#ifdef PIOS_INCLUDE_RFM22B
133133static uint8_t previousRFXtalCap ;
134+ static uint8_t protocol ;
134135static void oplinkSettingsUpdatedCb (UAVObjEvent * ev );
135136#endif
136137
@@ -239,6 +240,8 @@ static void systemTask(__attribute__((unused)) void *parameters)
239240 // Initialize previousRFXtalCap used by callback
240241 OPLinkSettingsRFXtalCapGet (& previousRFXtalCap );
241242 OPLinkSettingsConnectCallback (oplinkSettingsUpdatedCb );
243+ // Get protocol
244+ OPLinkSettingsProtocolGet (& protocol );
242245#endif
243246
244247#ifdef DIAG_TASKS
@@ -332,7 +335,7 @@ static void systemTask(__attribute__((unused)) void *parameters)
332335 oplinkStatus .RXSeq = radio_stats .rx_seq ;
333336
334337 oplinkStatus .LinkState = radio_stats .link_state ;
335- } else {
338+ } else if ( protocol != OPLINKSETTINGS_PROTOCOL_OPENLRS ) {
336339 oplinkStatus .LinkState = OPLINKSTATUS_LINKSTATE_DISABLED ;
337340 }
338341 OPLinkStatusSet (& oplinkStatus );
You can’t perform that action at this time.
0 commit comments