diff --git a/libraries/AP_Airspeed/AP_Airspeed_Backend.cpp b/libraries/AP_Airspeed/AP_Airspeed_Backend.cpp index 412b337eeb..fc36421419 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_Backend.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_Backend.cpp @@ -58,7 +58,7 @@ uint8_t AP_Airspeed_Backend::get_bus(void) const return frontend.param[instance].bus; } -bool AP_Airspeed_Backend::bus_is_confgured(void) const +bool AP_Airspeed_Backend::bus_is_configured(void) const { return frontend.param[instance].bus.configured(); } diff --git a/libraries/AP_Airspeed/AP_Airspeed_Backend.h b/libraries/AP_Airspeed/AP_Airspeed_Backend.h index 2deeb427c0..58ca025883 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_Backend.h +++ b/libraries/AP_Airspeed/AP_Airspeed_Backend.h @@ -59,7 +59,7 @@ protected: int8_t get_pin(void) const; float get_psi_range(void) const; uint8_t get_bus(void) const; - bool bus_is_confgured(void) const; + bool bus_is_configured(void) const; uint8_t get_instance(void) const { return instance; } diff --git a/libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp b/libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp index d6e4c456a3..ec91bf8b4b 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_MS4525.cpp @@ -62,7 +62,7 @@ bool AP_Airspeed_MS4525::probe(uint8_t bus, uint8_t address) bool AP_Airspeed_MS4525::init() { static const uint8_t addresses[] = { MS4525D0_I2C_ADDR1, MS4525D0_I2C_ADDR2, MS4525D0_I2C_ADDR3 }; - if (bus_is_confgured()) { + if (bus_is_configured()) { // the user has configured a specific bus for (uint8_t addr : addresses) { if (probe(get_bus(), addr)) {