mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
pass cmd string as reference
This commit is contained in:
@@ -489,7 +489,7 @@ bool EMSdevice::is_readable(const void * value_p) const {
|
||||
}
|
||||
|
||||
// check if value/command is readonly
|
||||
bool EMSdevice::is_readonly(const std::string cmd, const int8_t id) const {
|
||||
bool EMSdevice::is_readonly(const std::string & cmd, const int8_t id) const {
|
||||
uint8_t tag = id > 0 ? DeviceValueTAG::TAG_HC1 + id - 1 : DeviceValueTAG::TAG_NONE;
|
||||
for (const auto & dv : devicevalues_) {
|
||||
// check command name and tag, id -1 is default hc and only checks name
|
||||
|
||||
Reference in New Issue
Block a user