mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Fixed typo usb_vaild -> usb_valid
This commit is contained in:
@@ -3,7 +3,7 @@ float32 voltage3V3_v # Sensor 3V3 rail voltage
|
|||||||
uint8 v3v3_valid # Sensor 3V3 rail voltage was read.
|
uint8 v3v3_valid # Sensor 3V3 rail voltage was read.
|
||||||
uint8 usb_connected # USB is connected when 1
|
uint8 usb_connected # USB is connected when 1
|
||||||
uint8 brick_valid # brick bits power is good when bit 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 servo_valid # servo power is good when 1
|
||||||
uint8 periph_5V_OC # peripheral overcurrent when 1
|
uint8 periph_5V_OC # peripheral overcurrent when 1
|
||||||
uint8 hipower_5V_OC # hi power 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;
|
system_power.usb_connected = BOARD_ADC_USB_CONNECTED;
|
||||||
/* If provided used the Valid signal from HW*/
|
/* If provided used the Valid signal from HW*/
|
||||||
#if defined(BOARD_ADC_USB_VALID)
|
#if defined(BOARD_ADC_USB_VALID)
|
||||||
system_power.usb_vaild = BOARD_ADC_USB_VALID;
|
system_power.usb_valid = BOARD_ADC_USB_VALID;
|
||||||
#else
|
#else
|
||||||
/* If not provided then use connected */
|
/* If not provided then use connected */
|
||||||
system_power.usb_vaild = system_power.usb_connected;
|
system_power.usb_valid = system_power.usb_connected;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The valid signals (HW dependent) are associated with each brick */
|
/* The valid signals (HW dependent) are associated with each brick */
|
||||||
|
|||||||
Reference in New Issue
Block a user