mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
Fix sdlog2 stopping on param write. Found by Severin Leuenberger
This commit is contained in:
@@ -1975,10 +1975,10 @@ void handle_command(struct vehicle_command_s *cmd)
|
|||||||
if (param == 1) {
|
if (param == 1) {
|
||||||
sdlog2_start_log();
|
sdlog2_start_log();
|
||||||
|
|
||||||
} else if (param == 0) {
|
} else if (param == -1) {
|
||||||
sdlog2_stop_log();
|
sdlog2_stop_log();
|
||||||
} else {
|
} else {
|
||||||
warnx("unknown storage cmd");
|
// Silently ignore non-matching command values, as they could be for params.
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user