From e96864739fc9f76720c65293c838c53f1d57dc01 Mon Sep 17 00:00:00 2001 From: Tool-Scientist Date: Wed, 17 Sep 2025 12:35:24 +1000 Subject: [PATCH] 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. --- m18.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m18.py b/m18.py index 42b4a1a..47a97e5 100644 --- a/m18.py +++ b/m18.py @@ -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: