code optimization

This commit is contained in:
proddy
2022-03-27 23:16:02 +02:00
parent 904198013e
commit 3ddee386b2
2 changed files with 2 additions and 2 deletions

View File

@@ -858,7 +858,7 @@ void EMSdevice::reset_entity_masks() {
}
// disable/exclude/mask_out a device entity based on the id
void EMSdevice::mask_entity(std::string & entity_id) {
void EMSdevice::mask_entity(const std::string & entity_id) {
// first character contains mask flags
uint8_t flag = Helpers::hextoint(entity_id.substr(0, 2).c_str());
for (auto & dv : devicevalues_) {