Browse Source

Typo Fix: ChangeWorkQeue

Fix the typo of 'WorkItem::ChangeWorkQeue' to 'WorkItem::ChangeWorkQueue'
v1.13.0-BW
wangwwno1 3 years ago committed by Daniel Agar
parent
commit
746c16400a
  1. 2
      platforms/common/include/px4_platform_common/px4_work_queue/WorkItem.hpp
  2. 2
      src/drivers/pca9685_pwm_out/main.cpp
  3. 4
      src/lib/mixer_module/mixer_module.cpp

2
platforms/common/include/px4_platform_common/px4_work_queue/WorkItem.hpp

@ -79,7 +79,7 @@ public: @@ -79,7 +79,7 @@ public:
* @param config The WorkQueue configuration (see WorkQueueManager.hpp).
* @return true if initialization was successful
*/
bool ChangeWorkQeue(const wq_config_t &config) { return Init(config); }
bool ChangeWorkQueue(const wq_config_t &config) { return Init(config); }
const char *ItemName() const { return _item_name; }

2
src/drivers/pca9685_pwm_out/main.cpp

@ -158,7 +158,7 @@ int PCA9685Wrapper::init() @@ -158,7 +158,7 @@ int PCA9685Wrapper::init()
_class_instance = register_class_devname(PWM_OUTPUT_BASE_DEVICE_PATH);
this->ChangeWorkQeue(px4::device_bus_to_wq(pca9685->get_device_id()));
this->ChangeWorkQueue(px4::device_bus_to_wq(pca9685->get_device_id()));
PX4_INFO("running on I2C bus %d address 0x%.2x", pca9685->get_device_bus(), pca9685->get_device_address());

4
src/lib/mixer_module/mixer_module.cpp

@ -269,7 +269,7 @@ bool MixingOutput::updateSubscriptionsStaticMixer(bool allow_wq_switch, bool lim @@ -269,7 +269,7 @@ bool MixingOutput::updateSubscriptionsStaticMixer(bool allow_wq_switch, bool lim
const bool sub_group_1 = (_groups_required & (1 << 1));
if (allow_wq_switch && !_wq_switched && (sub_group_0 || sub_group_1)) {
if (_interface.ChangeWorkQeue(px4::wq_configurations::rate_ctrl)) {
if (_interface.ChangeWorkQueue(px4::wq_configurations::rate_ctrl)) {
// let the new WQ handle the subscribe update
_wq_switched = true;
_interface.ScheduleNow();
@ -374,7 +374,7 @@ bool MixingOutput::updateSubscriptionsDynamicMixer(bool allow_wq_switch, bool li @@ -374,7 +374,7 @@ bool MixingOutput::updateSubscriptionsDynamicMixer(bool allow_wq_switch, bool li
}
if (allow_wq_switch && !_wq_switched && switch_requested) {
if (_interface.ChangeWorkQeue(px4::wq_configurations::rate_ctrl)) {
if (_interface.ChangeWorkQueue(px4::wq_configurations::rate_ctrl)) {
// let the new WQ handle the subscribe update
_wq_switched = true;
_interface.ScheduleNow();

Loading…
Cancel
Save