From e3cea4c68b47296104de976d2c3e072abdc5bc47 Mon Sep 17 00:00:00 2001 From: lujji Date: Mon, 5 Dec 2022 22:12:46 +0200 Subject: [PATCH] minor ui fix --- firmware/application/apps/ui_encoders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/apps/ui_encoders.cpp b/firmware/application/apps/ui_encoders.cpp index f811a3d6..c9224bc6 100644 --- a/firmware/application/apps/ui_encoders.cpp +++ b/firmware/application/apps/ui_encoders.cpp @@ -252,7 +252,7 @@ void EncodersView::start_tx(const bool scan) { scan_width = view_scan.field_length.value(); samples_per_bit = ((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); repeat_min = seq_len; } else {