diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-03-27 17:46:49 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-03-27 17:46:49 +0200 |
commit | cecedeca90bf231c5cd10b618ee2a61feb25cf83 (patch) | |
tree | 807254f71a46d36172625193c3cffe262e1f899d /src | |
parent | 84d42361984b3ab087222893eef912baed283757 (diff) | |
download | midbro-cecedeca90bf231c5cd10b618ee2a61feb25cf83.tar.gz midbro-cecedeca90bf231c5cd10b618ee2a61feb25cf83.tar.bz2 |
Print verbose messages only for debug builds
Diffstat (limited to 'src')
-rw-r--r-- | src/midbro.c | 4 |
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; } |