Merge pull request #387 from DanielR92/percent_power

wrong value name (not defined)
This commit is contained in:
Lukas Pusch 2022-11-04 14:31:36 +01:00 committed by GitHub
commit c1502fcaa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";