From 58a0ec9ccaefe5373044220507ce093096cde71b Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 2 Oct 2022 15:54:12 +0200 Subject: [PATCH] move the set_custom_minmax into the class initiator --- src/emsdevicevalue.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/emsdevicevalue.cpp b/src/emsdevicevalue.cpp index 95e72c99f..97b7f6b7a 100644 --- a/src/emsdevicevalue.cpp +++ b/src/emsdevicevalue.cpp @@ -60,9 +60,13 @@ DeviceValue::DeviceValue(uint8_t device_type, options_size = Helpers::count_items(options); } + // set the min/max + set_custom_minmax(); + #ifdef EMSESP_STANDALONE // only added for debugging - Serial.print("registering entity: "); + Serial.print(COLOR_BRIGHT_RED_BACKGROUND); + Serial.print(" registering entity: "); Serial.print((short_name)); Serial.print("/"); if (!custom_fullname.empty()) { @@ -92,7 +96,7 @@ DeviceValue::DeviceValue(uint8_t device_type, Serial.print((options_single[0])); Serial.print("!"); } - Serial.println(""); + Serial.println(COLOR_RESET); #endif }