mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correct type mappings
This commit is contained in:
@@ -124,7 +124,7 @@ def generateXdrMappings(fp,oh,inFile=''):
|
|||||||
first=False
|
first=False
|
||||||
else:
|
else:
|
||||||
oh.write(",\n")
|
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')
|
fields=item.get('fields')
|
||||||
if fields is None:
|
if fields is None:
|
||||||
continue
|
continue
|
||||||
@@ -144,7 +144,7 @@ def generateXdrMappings(fp,oh,inFile=''):
|
|||||||
first=False
|
first=False
|
||||||
else:
|
else:
|
||||||
oh.write(",\n")
|
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")
|
||||||
oh.write("};\n")
|
oh.write("};\n")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user