Skip to content

Commit

Permalink
Fixed rssi
Browse files Browse the repository at this point in the history
  • Loading branch information
SzczepanLeon committed Sep 24, 2024
1 parent 642c2ff commit 6774010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/wmbus/wmbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace wmbus {
for (auto const& field : sensor->fields) {
std::string field_name = field.first.first;
std::string unit = field.first.second;
if (field.first == "rssi") {
if (field_name == "rssi") {
field.second->publish_state(mbus_data.rssi);
}
else if (field.second->get_unit_of_measurement().empty()) {
Expand Down

0 comments on commit 6774010

Please sign in to comment.