mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Fixed proc_tones skipping last tone
Split ui_bht to bht
This commit is contained in:
parent
f033782d4b
commit
1e34a48be9
11 changed files with 277 additions and 290 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue