mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 04:27:39 +00:00
Fixed proc_tones skipping last tone
Split ui_bht to bht
This commit is contained in:
Binary file not shown.
@@ -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 {
|
||||
|
Reference in New Issue
Block a user