1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

add XDR min interval, N2K min interval, add N2K_LOAD_LEVEL and N2K_CERTIFICATION_LEVEL

This commit is contained in:
wellenvogel
2021-12-03 11:47:05 +01:00
parent b01dabf8cc
commit 3e73f6b80c
10 changed files with 116 additions and 36 deletions

View File

@@ -124,6 +124,16 @@ function checkApPass(v) {
return "password must be at least 8 characters";
}
}
function checkMinXdrInterval(v){
let vv=parseInt(v);
if (isNaN(vv)) return "is not a number";
if (vv < 10) return "must be >= 10";
}
function checkMin2KInterval(v){
let vv=parseInt(v);
if (isNaN(vv)) return "is not a number";
if (vv < 5) return "must be >= 5";
}
function checkXDR(v,allValues){
if (! v) return;
let parts=v.split(',');