From 1425657a3c214f9af8c5df0c5889d8b4bbc59f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sat, 25 Mar 2023 20:14:04 +0100 Subject: [PATCH] fix channel num in json output --- src/mesh/http/ContentHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/http/ContentHandler.cpp b/src/mesh/http/ContentHandler.cpp index 0a93298b9..03aab54ae 100644 --- a/src/mesh/http/ContentHandler.cpp +++ b/src/mesh/http/ContentHandler.cpp @@ -645,7 +645,7 @@ void handleReport(HTTPRequest *req, HTTPResponse *res) // data->radio JSONObject jsonObjRadio; jsonObjRadio["frequency"] = new JSONValue(RadioLibInterface::instance->getFreq()); - jsonObjRadio["lora_channel"] = new JSONValue((int)RadioLibInterface::instance->getChannelNum()); + jsonObjRadio["lora_channel"] = new JSONValue((int)RadioLibInterface::instance->getChannelNum() + 1); // collect data to inner data object JSONObject jsonObjInner;