correction on moulinette
This commit is contained in:
@@ -104,10 +104,11 @@ def excel_parser(sheet_det, slave_no, slave_device, allowed_name_characters, dsh
|
||||
else:
|
||||
logging.debug("Poll interval undefined, using 1000ms as default.")
|
||||
step2_data["pollInterval"] = 1000
|
||||
if row['endian_swap']:
|
||||
if not math.isnan(row['endian_swap']):
|
||||
logging.debug(f"Endian Swap: {row['endian_swap']} {row['metric_name']}")
|
||||
step2_data["swap"] = int(row['endian_swap'])
|
||||
else:
|
||||
logging.debug("Endian Swap undefined, not using swap as default.")
|
||||
logging.debug(f"Endian Swap undefined, not using swap as default. {row['metric_name']}")
|
||||
step2_data["swap"] = 0
|
||||
step2_data["dataType"] = row['type']
|
||||
if not math.isnan(row['scaling_factor']):
|
||||
|
||||
Reference in New Issue
Block a user