feat: Convert PPM_UNIT build option to runtime radio setting (#3993)
This commit is contained in:
@@ -889,13 +889,13 @@ char *getSourceCustomValueString(char (&dest)[L], source_t source, int32_t val,
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags);
|
||||
}
|
||||
else if (source <= MIXSRC_LAST_CH) {
|
||||
#if defined(PPM_UNIT_PERCENT_PREC1)
|
||||
val = calcRESXto1000(val);
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags | PREC1);
|
||||
#else
|
||||
val = calcRESXto100(val);
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags);
|
||||
#endif
|
||||
if (g_eeGeneral.ppmunit == PPM_PERCENT_PREC1) {
|
||||
val = calcRESXto1000(val);
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags | PREC1);
|
||||
} else {
|
||||
val = calcRESXto100(val);
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags);
|
||||
}
|
||||
}
|
||||
else {
|
||||
BitmapBuffer::formatNumberAsString(dest, len, val, flags);
|
||||
|
||||
Reference in New Issue
Block a user