From aca1688cebbe01bdd982670da9a97bd69ebb1a86 Mon Sep 17 00:00:00 2001 From: lumapu Date: Mon, 19 Sep 2022 10:59:19 +0200 Subject: [PATCH] potential fix #270 (number of inverter channels was a fixed value of 5) --- tools/esp8266/config.h | 2 +- tools/esp8266/html/visualization.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/esp8266/config.h b/tools/esp8266/config.h index 9d2cf4b3..2efe5e4f 100644 --- a/tools/esp8266/config.h +++ b/tools/esp8266/config.h @@ -49,7 +49,7 @@ #define DTU_RADIO_ID ((uint64_t)0x1234567801ULL) // default NRF24 power, possible values (0 - 3) -#define DEF_AMPLIFIERPOWER 2 +#define DEF_AMPLIFIERPOWER 1 // number of packets hold in buffer #define PACKET_BUFFER_SIZE 30 diff --git a/tools/esp8266/html/visualization.html b/tools/esp8266/html/visualization.html index 5da87ebc..57552e3b 100644 --- a/tools/esp8266/html/visualization.html +++ b/tools/esp8266/html/visualization.html @@ -62,7 +62,7 @@ main.appendChild(ch0); - for(var i = 1; i < 5; i++) { + for(var i = 1; i < (iv["channels"] + 1); i++) { var ch = div(["ch"]); ch.appendChild(span(("" == iv["ch_names"][i]) ? ("CHANNEL " + i) : iv["ch_names"][i], ["head"]));