Fixed proc_tones skipping last tone

Split ui_bht to bht
This commit is contained in:
furrtek 2016-12-26 16:15:54 +01:00
parent f033782d4b
commit 1e34a48be9
11 changed files with 277 additions and 290 deletions

View file

@ -49,7 +49,7 @@ void TonesProcessor::execute(const buffer_c8_t& buffer) {
im = 0;
} else {
if (!sample_count) {
digit = shared_memory.bb_data.tones_data.message[digit_pos++];
digit = shared_memory.bb_data.tones_data.message[digit_pos];
if (digit_pos >= message_length) {
configured = false;
txdone_message.done = true;
@ -59,6 +59,8 @@ void TonesProcessor::execute(const buffer_c8_t& buffer) {
shared_memory.application_queue.push(txdone_message);
}
digit_pos++;
if ((digit >= 32) || (tone_deltas[digit] == 0)) {
silence_count = shared_memory.bb_data.tones_data.silence;
} else {