Fix rssi logging.
This commit is contained in:
parent
b057ce550d
commit
836417bce2
|
@ -448,7 +448,7 @@ static bool testBlackboxConditionUncached(FlightLogFieldCondition condition)
|
|||
#endif
|
||||
|
||||
case FLIGHT_LOG_FIELD_CONDITION_RSSI:
|
||||
return rxConfig()->rssi_channel > 0 || featureIsEnabled(FEATURE_RSSI_ADC);
|
||||
return isRssiConfigured();
|
||||
|
||||
case FLIGHT_LOG_FIELD_CONDITION_NOT_LOGGING_EVERY_FRAME:
|
||||
return blackboxConfig()->p_ratio != 1;
|
||||
|
|
|
@ -697,3 +697,8 @@ uint16_t rxGetRefreshRate(void)
|
|||
{
|
||||
return rxRuntimeConfig.rxRefreshRate;
|
||||
}
|
||||
|
||||
bool isRssiConfigured(void)
|
||||
{
|
||||
return rssiSource != RSSI_SOURCE_NONE;
|
||||
}
|
||||
|
|
|
@ -166,6 +166,7 @@ void setRssiMsp(uint8_t newMspRssi);
|
|||
void updateRSSI(timeUs_t currentTimeUs);
|
||||
uint16_t getRssi(void);
|
||||
uint8_t getRssiPercent(void);
|
||||
bool isRssiConfigured(void);
|
||||
|
||||
void resetAllRxChannelRangeConfigurations(rxChannelRangeConfig_t *rxChannelRangeConfig);
|
||||
|
||||
|
|
Loading…
Reference in New Issue