mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Fixed a & vs && bug
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
#include "uORB/uORB.h"
|
#include "uORB/uORB.h"
|
||||||
#include "uORB/topics/parameter_update.h"
|
#include "uORB/topics/parameter_update.h"
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
# define debug(fmt, args...) do { warnx(fmt, ##args); } while(0)
|
# define debug(fmt, args...) do { warnx(fmt, ##args); } while(0)
|
||||||
#else
|
#else
|
||||||
# define debug(fmt, args...) do { } while(0)
|
# define debug(fmt, args...) do { } while(0)
|
||||||
@@ -479,7 +479,7 @@ param_export(int fd, bool only_unsaved)
|
|||||||
* If we are only saving values changed since last save, and this
|
* If we are only saving values changed since last save, and this
|
||||||
* one hasn't, then skip it
|
* one hasn't, then skip it
|
||||||
*/
|
*/
|
||||||
if (only_unsaved & !s->unsaved)
|
if (only_unsaved && !s->unsaved)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
s->unsaved = false;
|
s->unsaved = false;
|
||||||
@@ -519,7 +519,7 @@ param_export(int fd, bool only_unsaved)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
debug("unrecognised parameter type");
|
debug("unrecognized parameter type");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user