diff --git a/tools/esp8266/html/visualization.html b/tools/esp8266/html/visualization.html
index 5da87ebc..1f5901b4 100644
--- a/tools/esp8266/html/visualization.html
+++ b/tools/esp8266/html/visualization.html
@@ -61,8 +61,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"]));