From 7ef0afed4580243ff1e3055015f4211555b15d17 Mon Sep 17 00:00:00 2001 From: rorosentrater Date: Sun, 10 Dec 2023 21:06:26 -0500 Subject: [PATCH] With the switch to enums we need to get the actual int value before dumping json payload --- saturn_printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saturn_printer.py b/saturn_printer.py index ac1bb49..242af28 100644 --- a/saturn_printer.py +++ b/saturn_printer.py @@ -309,7 +309,7 @@ class SaturnPrinter: timestamp = int(time.time() * 1000) cmd_data = { "Data": { - "Cmd": cmdid, + "Cmd": cmdid.value, "Data": data, "From": 0, "MainboardID": self.id,