Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/drivers/dshot/DShot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ bool DShot::initialize_dshot()
}

if (dshot_timer_channels == 0) {
PX4_WARN("No channels configured");
PX4_INFO("No channels configured");
return false;
}

Expand Down Expand Up @@ -1238,6 +1238,7 @@ int DShot::custom_command(int argc, char *argv[])

int DShot::task_spawn(int argc, char *argv[])
{
int ret = PX4_ERROR;
DShot *instance = new DShot();

if (instance) {
Expand All @@ -1249,6 +1250,7 @@ int DShot::task_spawn(int argc, char *argv[])
}

PX4_INFO("Exiting");
ret = PX4_OK;

} else {
PX4_ERR("alloc failed");
Expand All @@ -1258,7 +1260,7 @@ int DShot::task_spawn(int argc, char *argv[])
desc.object.store(nullptr);
desc.task_id = -1;

return PX4_ERROR;
return ret;
}

int DShot::print_usage(const char *reason)
Expand Down
Loading