thermal: learn to parse the output of the pi controller
diff --git a/cr2/thermal.py b/cr2/thermal.py
index 8a6e64e..e4ceffe 100644
--- a/cr2/thermal.py
+++ b/cr2/thermal.py
@@ -34,8 +34,8 @@
def parse_into_csv(self):
"""Create a csv representation of the thermal data and store it in self.data_csv"""
pat_timestamp = re.compile(r"([0-9]+\.[0-9]+):")
- pat_data = re.compile(r"[A-Za-z0-9_]+=([a-f0-9]+)")
- pat_header = re.compile(r"([A-Za-z0-9_]+)=[a-f0-9]+")
+ pat_data = re.compile(r"[A-Za-z0-9_]+=([-a-f0-9]+)")
+ pat_header = re.compile(r"([A-Za-z0-9_]+)=[-a-f0-9]+")
header = ""
with open("trace.txt") as fin: