mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
check BBQKees as mfg
This commit is contained in:
@@ -1800,10 +1800,13 @@ String System::getBBQKeesGatewayDetails() {
|
||||
return "";
|
||||
}
|
||||
|
||||
// TODO add to header as a define
|
||||
if (EMSESP::nvs_.getString("mfg") != "BBQKees") {
|
||||
// mfg can be either "BBQKees" or "BBQKees Electronics"
|
||||
auto mfg = EMSESP::nvs_.getString("mfg");
|
||||
if (mfg) {
|
||||
if (!mfg.startsWith("BBQKees")) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
return "BBQKees Gateway Model " + EMSESP::nvs_.getString("model") + " v" + EMSESP::nvs_.getString("hwrevision") + "/" + EMSESP::nvs_.getString("batch");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user