New Table widget

This commit is contained in:
Bertrand Songis
2019-11-28 17:03:57 +01:00
parent d3f7033605
commit bc9cd3fba9
17 changed files with 59 additions and 63 deletions
+3 -3
View File
@@ -55,16 +55,16 @@ PLAY_FUNCTION(playValue, source_t idx)
if (telemetrySensor.prec > 0) {
if (telemetrySensor.prec == 2) {
if (val >= 5000) {
val = div_and_round(val, 100);
val = divRoundClosest(val, 100);
}
else {
val = div_and_round(val, 10);
val = divRoundClosest(val, 10);
attr = PREC1;
}
}
else {
if (val >= 500) {
val = div_and_round(val, 10);
val = divRoundClosest(val, 10);
}
else {
attr = PREC1;