mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
move the set_custom_minmax into the class initiator
This commit is contained in:
@@ -60,9 +60,13 @@ DeviceValue::DeviceValue(uint8_t device_type,
|
|||||||
options_size = Helpers::count_items(options);
|
options_size = Helpers::count_items(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set the min/max
|
||||||
|
set_custom_minmax();
|
||||||
|
|
||||||
#ifdef EMSESP_STANDALONE
|
#ifdef EMSESP_STANDALONE
|
||||||
// only added for debugging
|
// only added for debugging
|
||||||
Serial.print("registering entity: ");
|
Serial.print(COLOR_BRIGHT_RED_BACKGROUND);
|
||||||
|
Serial.print(" registering entity: ");
|
||||||
Serial.print((short_name));
|
Serial.print((short_name));
|
||||||
Serial.print("/");
|
Serial.print("/");
|
||||||
if (!custom_fullname.empty()) {
|
if (!custom_fullname.empty()) {
|
||||||
@@ -92,7 +96,7 @@ DeviceValue::DeviceValue(uint8_t device_type,
|
|||||||
Serial.print((options_single[0]));
|
Serial.print((options_single[0]));
|
||||||
Serial.print("!");
|
Serial.print("!");
|
||||||
}
|
}
|
||||||
Serial.println("");
|
Serial.println(COLOR_RESET);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user