submit_form() was not recording cell voltages due to bug in read_id()

"label" format is printed on one line, everything else prints cell voltages one per line.
This commit is contained in:
Tool-Scientist
2025-09-17 12:35:24 +10:00
parent c8b0aa285b
commit e96864739f

2
m18.py
View File

@@ -699,7 +699,7 @@ class M18:
array_value = cv = [int.from_bytes(data[i:i+2], 'big') for i in range(0, 10, 2)]
if( output == "label" ):
value = f"1: {cv[0]:4d}, 2: {cv[1]:4d}, 3: {cv[2]:4d}, 4: {cv[3]:4d}, 5: {cv[4]:4d}"
elif( output == "raw" ):
else:
value = f"{cv[0]:4d}\n{cv[1]:4d}\n{cv[2]:4d}\n{cv[3]:4d}\n{cv[4]:4d}"
else: