diff options
Diffstat (limited to 'sound_detector')
-rw-r--r-- | sound_detector/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound_detector/main.cpp b/sound_detector/main.cpp index 733507f..6caf280 100644 --- a/sound_detector/main.cpp +++ b/sound_detector/main.cpp @@ -204,7 +204,8 @@ void handle_data() printf("level detected %f, level required %f\n", ((float)level/(float)INT16_MAX)*100, thresold_percent); if(level > thresold) { - printf("write started\n"); + if(debug) + printf("write started\n"); boost::filesystem::path p(out_dir); p += "/"; p += time_str(); |