AP_HAL_ChibiOS: Fix board voltage checks being disabled

This commit is contained in:
Michael du Breuil 2018-11-10 13:58:25 -07:00 committed by Francisco Ferreira
parent 1069ab0860
commit a5115930dd

View File

@ -1058,6 +1058,7 @@ def write_ADC_config(f):
scale = p.extra_value('SCALE', default=None)
if p.label == 'VDD_5V_SENS':
f.write('#define ANALOG_VCC_5V_PIN %u\n' % chan)
f.write('#define HAL_HAVE_BOARD_VOLTAGE 1\n')
adc_chans.append((chan, scale, p.label, p.portpin))
adc_chans = sorted(adc_chans)
vdd = get_config('STM32_VDD')