mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -05:00
minor ui fix
This commit is contained in:
parent
0631f5d5ab
commit
e3cea4c68b
@ -252,7 +252,7 @@ void EncodersView::start_tx(const bool scan) {
|
|||||||
scan_width = view_scan.field_length.value();
|
scan_width = view_scan.field_length.value();
|
||||||
samples_per_bit =
|
samples_per_bit =
|
||||||
((view_scan.bit_length_10.value() * 10 + view_scan.bit_length.value()) * OOK_SAMPLERATE) / 1000000UL;
|
((view_scan.bit_length_10.value() * 10 + view_scan.bit_length.value()) * OOK_SAMPLERATE) / 1000000UL;
|
||||||
const uint32_t seq_len = ((1 << (scan_width - 1)) * 2) * samples_per_bit / 2048;
|
const uint32_t seq_len = ((1 << (scan_width - 1)) * 2) * ((uint64_t) samples_per_bit) / 2048UL;
|
||||||
progressbar.set_max(seq_len);
|
progressbar.set_max(seq_len);
|
||||||
repeat_min = seq_len;
|
repeat_min = seq_len;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user