mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_HAL_ChibiOS: Fix board voltage checks being disabled
This commit is contained in:
parent
1069ab0860
commit
a5115930dd
@ -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…
Reference in New Issue
Block a user