check BBQKees as mfg

This commit is contained in:
proddy
2024-08-02 09:59:59 +02:00
parent 69aa7275d8
commit a22ee0274b

View File

@@ -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