Skip to content

Commit

Permalink
[DISC] Fix device name discovery (#2093)
Browse files Browse the repository at this point in the history
Fix issue introduced by #1936

Co-authored-by: Florian <[email protected]>
  • Loading branch information
1technophile and 1technophile authored Oct 25, 2024
1 parent f309605 commit 952a65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/ZgatewayBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ void launchBTDiscovery(bool overrideDiscovery) {
Log.trace(F("properties: %s" CR), properties.c_str());
std::string brand = decoder.getTheengAttribute(p->sensorModel_id, "brand");
std::string model = decoder.getTheengAttribute(p->sensorModel_id, "model");
# ifdef ForceDeviceName
# if ForceDeviceName
if (p->name[0] != '\0') {
model = p->name;
}
Expand Down

0 comments on commit 952a65d

Please sign in to comment.