diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-02-22 07:44:16 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-02-22 07:44:16 +0200 |
commit | f71be6573531052d960e9d2e69ada4bdb8572cd4 (patch) | |
tree | 6adc173c1bc5a42df564b00d0d4563637fd63bbf /sound_detector/main.cpp | |
parent | dfc0b9d174f35669ae3eede0d8c2a5ca3a0f95f6 (diff) |
typo ...., i need to sleep... NOW
Diffstat (limited to 'sound_detector/main.cpp')
-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(); |