diff --git a/panther_battery/src/adc_node.py b/panther_battery/src/adc_node.py index 373f5845c..999640c87 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