mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Fixed digital power module validity check
This commit is contained in:
committed by
Daniel Agar
parent
75c8fb12e4
commit
e9890d01d9
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user