wrong value name (not defined)

This commit is contained in:
DanielR92 2022-11-04 12:50:26 +01:00
parent 9235db59c9
commit e50c6c8991

View file

@ -189,7 +189,8 @@
var val = parseInt(document.getElementsByName('pwrlimval')[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))
{
var tmp = (isNaN(val)) ? "Value" : "Unit";