mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Fix U32 webserver handling
This commit is contained in:
parent
3fb362af09
commit
c2a600f263
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ template <typename T> // This function makes power values appear as W when unde
|
|||
String formatPowerValue(String label, T value, String unit, int precision) {
|
||||
String result = "<h4 style='color: white;'>" + label + ": ";
|
||||
|
||||
if (std::is_same<T, float>::value || std::is_same<T, uint16_t>::value) {
|
||||
if (std::is_same<T, float>::value || std::is_same<T, uint16_t>::value || std::is_same<T, uint32_t>::value) {
|
||||
float convertedValue = static_cast<float>(value);
|
||||
|
||||
if (convertedValue >= 1000.0 || convertedValue <= -1000.0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue