chore(DynamicNumber): remove type argument warnings
This commit is contained in:
+4
-4
@@ -119,10 +119,10 @@ void DynamicNumber<uint16_t>::updateText()
|
||||
const char* s = suffix ? suffix : "";
|
||||
if ((textFlags & PREC2) == PREC2) {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRIu16 ".%02" PRIu16 "%s", p,
|
||||
value / 100, value % 100, s);
|
||||
(uint16_t)(value / 100), (uint16_t)(value % 100), s);
|
||||
} else if (textFlags & PREC1) {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRIu16 ".%01" PRIu16 "%s", p,
|
||||
value / 10, value % 10, s);
|
||||
(uint16_t)(value / 10), (uint16_t)(value % 10), s);
|
||||
} else {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRIu16 "%s", p, value, s);
|
||||
}
|
||||
@@ -137,10 +137,10 @@ void DynamicNumber<int16_t>::updateText()
|
||||
const char* s = suffix ? suffix : "";
|
||||
if ((textFlags & PREC2) == PREC2) {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRId16 ".%02" PRId16 "%s", p,
|
||||
value / 100, value % 100, s);
|
||||
(int16_t)(value / 100), (int16_t)(value % 100), s);
|
||||
} else if (textFlags & PREC1) {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRId16 ".%01" PRId16 "%s", p,
|
||||
value / 10, value % 10, s);
|
||||
(int16_t)(value / 10), (int16_t)(value % 10), s);
|
||||
} else {
|
||||
lv_label_set_text_fmt(lvobj, "%s%" PRId16 "%s", p, value, s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user