From f71be6573531052d960e9d2e69ada4bdb8572cd4 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 22 Feb 2013 07:44:16 +0200 Subject: typo ...., i need to sleep... NOW --- sound_detector/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sound_detector/main.cpp') 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(); -- cgit v1.2.3