mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add const function
This commit is contained in:
@@ -134,7 +134,7 @@ size_t DeviceValue::tag_count = sizeof(DeviceValue::DeviceValueTAG_s) / sizeof(_
|
|||||||
// checks whether the device value has an actual value
|
// checks whether the device value has an actual value
|
||||||
// returns true if its valid
|
// returns true if its valid
|
||||||
// state is stored in the dv object
|
// state is stored in the dv object
|
||||||
bool DeviceValue::hasValue() {
|
bool DeviceValue::hasValue() const {
|
||||||
bool has_value = false;
|
bool has_value = false;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case DeviceValueType::BOOL:
|
case DeviceValueType::BOOL:
|
||||||
|
|||||||
Reference in New Issue
Block a user