From a22ee0274b04be8118d90836f5d501544abebbf0 Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 2 Aug 2024 09:59:59 +0200 Subject: [PATCH] check BBQKees as mfg --- src/system.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/system.cpp b/src/system.cpp index 8ac9db7d9..4bfc484e4 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -1800,9 +1800,12 @@ String System::getBBQKeesGatewayDetails() { return ""; } - // TODO add to header as a define - if (EMSESP::nvs_.getString("mfg") != "BBQKees") { - return ""; + // 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");