diff options
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index ae4913559..c76569cf8 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1975,10 +1975,10 @@ void handle_command(struct vehicle_command_s *cmd) if (param == 1) { sdlog2_start_log(); - } else if (param == 0) { + } else if (param == -1) { sdlog2_stop_log(); } else { - warnx("unknown storage cmd"); + // Silently ignore non-matching command values, as they could be for params. } break; |