Feature: show hint if device profile missing or not selected

This commit is contained in:
Thomas Basler
2024-12-14 13:07:31 +01:00
parent 2edec642fb
commit 58382be16c
10 changed files with 27 additions and 5 deletions

View File

@@ -212,6 +212,8 @@ bool PinMappingClass::init(const String& deviceMapping)
for (uint8_t i = 0; i < doc.size(); i++) {
String devName = doc[i]["name"] | "";
if (devName == deviceMapping) {
_mappingSelected = true;
strlcpy(_pinMapping.name, devName.c_str(), sizeof(_pinMapping.name));
_pinMapping.nrf24_clk = doc[i]["nrf24"]["clk"] | HOYMILES_PIN_SCLK;
_pinMapping.nrf24_cs = doc[i]["nrf24"]["cs"] | HOYMILES_PIN_CS;