Browse Source

AP_HAL_ChibiOS: Fix board voltage checks being disabled

mission-4.1.18
Michael du Breuil 6 years ago committed by Francisco Ferreira
parent
commit
a5115930dd
  1. 1
      libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

1
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py

@ -1058,6 +1058,7 @@ def write_ADC_config(f): @@ -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')

Loading…
Cancel
Save