From 8a4341fec4c7d32c818146ff85ed52827f6c618d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 28 Oct 2022 02:15:16 +0200 Subject: [PATCH] use new lora.use_preset bool (#1868) --- src/mesh/Channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/Channels.cpp b/src/mesh/Channels.cpp index f7fc3592..d869de75 100644 --- a/src/mesh/Channels.cpp +++ b/src/mesh/Channels.cpp @@ -218,7 +218,7 @@ const char *Channels::getName(size_t chIndex) // Per mesh.proto spec, if bandwidth is specified we must ignore modemPreset enum, we assume that in that case // the app fucked up and forgot to set channelSettings.name - if (config.lora.bandwidth != 0) + if (config.lora.use_preset) channelName = "Custom"; else switch (config.lora.modem_preset) {