From 62a5b3f03a3cd7f6bcd2dc0a0133d96607ce1ad5 Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski <49921081+Kotochleb@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:04:02 +0200 Subject: [PATCH] Update adc_node.py --- panther_battery/src/adc_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/panther_battery/src/adc_node.py b/panther_battery/src/adc_node.py index 373f5845..999640c8 100755 --- a/panther_battery/src/adc_node.py +++ b/panther_battery/src/adc_node.py @@ -171,6 +171,7 @@ def _check_battery_count(self) -> int: f'[{rospy.get_name()}] Battery ADC measurement error excep. ' f'The number of batteries cannot be determined. The single battery was adopted.' ) + return 1 return 1 if V_temp_bat_2 > ADCNode.BAT02_DETECT_THRESH else 2