From 6afc6b1baa9bb7ecd166ee1a2918249371f115be Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 14 May 2026 21:24:55 +0200 Subject: [PATCH] replace rgbLedWrite --- src/core/emsdevice.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/emsdevice.cpp b/src/core/emsdevice.cpp index 570cb4470..55ea4396c 100644 --- a/src/core/emsdevice.cpp +++ b/src/core/emsdevice.cpp @@ -2312,7 +2312,6 @@ std::string EMSdevice::name() { // returns true on success. int EMSdevice::get_modbus_value(uint8_t tag, const std::string & shortname, std::vector & result) { // find device value by shortname - // TODO replace linear search which is inefficient const auto & it = std::find_if(devicevalues_.begin(), devicevalues_.end(), [&](const DeviceValue & x) { return x.tag == tag && x.short_name == shortname; }); if (it == devicevalues_.end() && (it->short_name != shortname || it->tag != tag)) { return -1;