From 5c7f7f5a4ca1343abab96e616bb04d6ee687d3b1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 7 Sep 2012 14:54:31 +0200 Subject: [PATCH] Fixed a & vs && bug --- apps/systemlib/param/param.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/systemlib/param/param.c b/apps/systemlib/param/param.c index 13d8df0269..a01c170a68 100644 --- a/apps/systemlib/param/param.c +++ b/apps/systemlib/param/param.c @@ -59,7 +59,7 @@ #include "uORB/uORB.h" #include "uORB/topics/parameter_update.h" -#if 0 +#if 1 # define debug(fmt, args...) do { warnx(fmt, ##args); } while(0) #else # 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 * one hasn't, then skip it */ - if (only_unsaved & !s->unsaved) + if (only_unsaved && !s->unsaved) continue; s->unsaved = false; @@ -519,7 +519,7 @@ param_export(int fd, bool only_unsaved) break; default: - debug("unrecognised parameter type"); + debug("unrecognized parameter type"); goto out; } }