Fix U32 webserver handling

This commit is contained in:
Daniel 2024-02-20 21:58:01 +02:00
parent 3fb362af09
commit c2a600f263

View file

@ -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) {