Browse Source

Merge branch 'main' into development03

pull/421/head
lumapu 2 years ago
parent
commit
921419de72
  1. 2
      tools/esp8266/README.md
  2. 3
      tools/esp8266/html/serial.html

2
tools/esp8266/README.md

@ -234,7 +234,7 @@ When everything is wired up and the firmware is flashed, it is time to connect t
## MQTT command to set the DTU without webinterface ## MQTT command to set the DTU without webinterface
[Read here](tools/esp8266/User_Manual.md) [Read here](User_Manual.md)
## Used Libraries ## Used Libraries

3
tools/esp8266/html/serial.html

@ -189,7 +189,8 @@
var val = parseInt(document.getElementsByName('pwrlimval')[0].value); var val = parseInt(document.getElementsByName('pwrlimval')[0].value);
var ctrl = parseInt(document.getElementsByName('pwrlimcntrl')[0].value); var ctrl = parseInt(document.getElementsByName('pwrlimcntrl')[0].value);
if((ctrl == 1 || ctrl == 257) && unit < 2) unit = 2; if((ctrl == 1 || ctrl == 257) && val < 2) val = 2;
if(isNaN(val) || isNaN(ctrl)) if(isNaN(val) || isNaN(ctrl))
{ {
var tmp = (isNaN(val)) ? "Value" : "Unit"; var tmp = (isNaN(val)) ? "Value" : "Unit";

Loading…
Cancel
Save