From 1c855540ef156c1161f6fa88db64c812a4fe63d9 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Tue, 6 Jun 2023 17:49:00 +0200 Subject: [PATCH] fix bat perc --- src/api_communication/api_communication/api_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_communication/api_communication/api_listener.py b/src/api_communication/api_communication/api_listener.py index 964a6bab..1ae1ac00 100644 --- a/src/api_communication/api_communication/api_listener.py +++ b/src/api_communication/api_communication/api_listener.py @@ -145,7 +145,7 @@ class ApiListener(Node): self.status_data['battery_percentage'] = msg.battery_percentage if msg.battery_percentage < 15: self.enable_failsafe( - "Battery level too low! Failsafe enabled to prevent damage to battery (" + str(msg.battery_percentage * 10) + "%)") + "Battery level too low! Failsafe enabled to prevent damage to battery (" + str(msg.battery_percentage ) + "%)") self.status_data['cpu_usage'] = msg.cpu_usage self.status_data['armed'] = msg.armed self.armed = msg.armed