forked from Archive/PX4-Autopilot
Fixed typo usb_vaild -> usb_valid
This commit is contained in:
parent
9ce3412a93
commit
a9bd3aeb85
|
@ -3,7 +3,7 @@ float32 voltage3V3_v # Sensor 3V3 rail voltage
|
|||
uint8 v3v3_valid # Sensor 3V3 rail voltage was read.
|
||||
uint8 usb_connected # USB is connected when 1
|
||||
uint8 brick_valid # brick bits power is good when bit 1
|
||||
uint8 usb_vaild # USB is valid when 1
|
||||
uint8 usb_valid # USB is valid when 1
|
||||
uint8 servo_valid # servo power is good when 1
|
||||
uint8 periph_5V_OC # peripheral overcurrent when 1
|
||||
uint8 hipower_5V_OC # hi power peripheral overcurrent when 1
|
||||
|
|
|
@ -432,10 +432,10 @@ ADC::update_system_power(hrt_abstime now)
|
|||
system_power.usb_connected = BOARD_ADC_USB_CONNECTED;
|
||||
/* If provided used the Valid signal from HW*/
|
||||
#if defined(BOARD_ADC_USB_VALID)
|
||||
system_power.usb_vaild = BOARD_ADC_USB_VALID;
|
||||
system_power.usb_valid = BOARD_ADC_USB_VALID;
|
||||
#else
|
||||
/* If not provided then use connected */
|
||||
system_power.usb_vaild = system_power.usb_connected;
|
||||
system_power.usb_valid = system_power.usb_connected;
|
||||
#endif
|
||||
|
||||
/* The valid signals (HW dependent) are associated with each brick */
|
||||
|
|
Loading…
Reference in New Issue