aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-03-27 17:46:49 +0200
committerRobin Krahl <me@robin-krahl.de>2018-03-27 17:46:49 +0200
commitcecedeca90bf231c5cd10b618ee2a61feb25cf83 (patch)
tree807254f71a46d36172625193c3cffe262e1f899d /src
parent84d42361984b3ab087222893eef912baed283757 (diff)
downloadmidbro-cecedeca90bf231c5cd10b618ee2a61feb25cf83.tar.gz
midbro-cecedeca90bf231c5cd10b618ee2a61feb25cf83.tar.bz2
Print verbose messages only for debug builds
Diffstat (limited to 'src')
-rw-r--r--src/midbro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/midbro.c b/src/midbro.c
index 60411d2..80433d6 100644
--- a/src/midbro.c
+++ b/src/midbro.c
@@ -61,7 +61,9 @@ request_n_values(int number, int arrayOfValues[])
arrayOfValues[i] = sensor->value;
free(sensor);
}
+#ifdef DEBUG
printf("Release %d sensor data values\n", number);
+#endif
}
int
request_value()
@@ -71,7 +73,9 @@ request_value()
sensor = pop_from_queue(queue);
value = sensor->value;
free(sensor);
+#ifdef DEBUG
printf("Release 1 sensor data value\n");
+#endif
return value;
}