From e9890d01d94a75b0926a116243ae3920766bde00 Mon Sep 17 00:00:00 2001 From: Timothy Scott Date: Thu, 16 Jan 2020 13:21:45 +0100 Subject: [PATCH] Fixed digital power module validity check --- src/drivers/adc/ADC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/adc/ADC.cpp b/src/drivers/adc/ADC.cpp index d4abd96580..93a429fbf8 100644 --- a/src/drivers/adc/ADC.cpp +++ b/src/drivers/adc/ADC.cpp @@ -209,8 +209,8 @@ void ADC::update_system_power(hrt_abstime now) system_power.usb_valid = system_power.usb_connected; #endif +#if defined(BOARD_BRICK_VALID_LIST) /* The valid signals (HW dependent) are associated with each brick */ -#if !defined(BOARD_NUMBER_DIGITAL_BRICKS) bool valid_chan[BOARD_NUMBER_BRICKS] = BOARD_BRICK_VALID_LIST; system_power.brick_valid = 0;