fix: RX stat labelling dependent on telemetry protocol (#3523)
* RX stat (formerly known as "RSSI") labeling dependent on protocol (RSSI/dbm, Rqly/%, Sgnl/-) used for range check, multi rf tuning and low/critical warning settings pages * chore: Bump libopenui * removed define that was supposed to be for testing only function getRxStatLabels(): wasting flash as inline, no need to be inlined * removed inline on getRxStatLabels() - step 2
This commit is contained in:
@@ -126,10 +126,12 @@ void frskyDSetDefault(int index, uint16_t id);
|
||||
#define IS_DISTANCE_UNIT(unit) ((unit) == UNIT_METERS || (unit) == UNIT_FEET)
|
||||
#define IS_SPEED_UNIT(unit) ((unit) >= UNIT_KTS && (unit) <= UNIT_MPH)
|
||||
|
||||
inline const char* getRssiLabel()
|
||||
{
|
||||
return "Rx-Stats";
|
||||
}
|
||||
typedef struct {
|
||||
const char *label;
|
||||
const char *unit;
|
||||
} rxStatStruct;
|
||||
|
||||
rxStatStruct *getRxStatLabels();
|
||||
|
||||
// TODO: this should handle only the external S.PORT line
|
||||
// - and go away in the end: one proto per module, not global!
|
||||
|
||||
Reference in New Issue
Block a user