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:
10
web/index.js
10
web/index.js
@@ -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(',');
|
||||
|
||||
Reference in New Issue
Block a user