1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

correct type mappings

This commit is contained in:
wellenvogel
2021-11-21 22:01:03 +01:00
parent 84a3faa51b
commit 2b91ce71bb

View File

@@ -124,7 +124,7 @@ def generateXdrMappings(fp,oh,inFile=''):
first=False
else:
oh.write(",\n")
oh.write(" new GwXDRTypeMapping(%d,%d,0) /*%s*/"%(cid,tc,cat))
oh.write(" new GwXDRTypeMapping(%d,0,%d) /*%s*/"%(cid,tc,cat))
fields=item.get('fields')
if fields is None:
continue
@@ -144,7 +144,7 @@ def generateXdrMappings(fp,oh,inFile=''):
first=False
else:
oh.write(",\n")
oh.write(" new GwXDRTypeMapping(%d,%d,%d) /*%s:%s*/"%(cid,tc,id,cat,l))
oh.write(" new GwXDRTypeMapping(%d,%d,%d) /*%s:%s*/"%(cid,id,tc,cat,l))
oh.write("\n")
oh.write("};\n")