mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 06:23:34 +08:00
navio_sysfs_rc_in: Fixing logical expression
navio_sysfs_rc_in stop works now.
This commit is contained in:
@@ -261,7 +261,7 @@ int navio_sysfs_rc_in_main(int argc, char *argv[])
|
||||
|
||||
if (!strcmp(argv[1], "stop")) {
|
||||
|
||||
if (rc_input == nullptr || rc_input->isRunning()) {
|
||||
if (rc_input == nullptr || !rc_input->isRunning()) {
|
||||
PX4_WARN("not running");
|
||||
/* this is not an error */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user