summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-22 07:44:16 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-22 07:44:16 +0200
commitf71be6573531052d960e9d2e69ada4bdb8572cd4 (patch)
tree6adc173c1bc5a42df564b00d0d4563637fd63bbf
parentdfc0b9d174f35669ae3eede0d8c2a5ca3a0f95f6 (diff)
typo ...., i need to sleep... NOW
-rw-r--r--sound_detector/main.cpp3
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();