From 0294da9cb44b4a7743944c10bcbe7275e4f8710e Mon Sep 17 00:00:00 2001 From: Greg Albrecht Date: Tue, 31 Dec 2024 13:44:43 -0800 Subject: [PATCH] removed debug message logging --- dronecot/classes.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dronecot/classes.py b/dronecot/classes.py index 34f6ecc..5257248 100644 --- a/dronecot/classes.py +++ b/dronecot/classes.py @@ -132,10 +132,6 @@ async def handle_sensor_position(self, message): async def handle_sensor_data(self, message: dict): """Process decoded data from the sensor.""" - if os.getenv("DEBUG"): - with open("messages.json", "a") as f: - json.dump(message, f) - protocol = message.get("protocol") if not protocol or str(protocol) != "1.0": return