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

intermediate: serial defs

This commit is contained in:
andreas
2023-10-09 17:43:07 +02:00
parent 4c2ec46aae
commit 72a9afa27d
3 changed files with 53 additions and 11 deletions

View File

@@ -303,6 +303,13 @@ class PipelineInfo{
initialConfig=config;
}
let expandedValues=expandList(config.values,config);
expandedValues.forEach((v)=>{
if (v.type !== undefined && v.type !== "frame"){
let err="value element with wrong type "+v.type+" at "+name;
alert(err);
throw new Error(err);
}
})
if (config.type === 'select') {
for (let idx=0;idx<expandedValues.length;idx++){
let v=expandedValues[idx];