mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
fix 0xFFFF counter value being skipped
This commit is contained in:
@@ -125,7 +125,7 @@ static bool subghz_protocol_somfy_telis_gen_data(
|
||||
btn = subghz_protocol_somfy_telis_get_btn_code();
|
||||
|
||||
if(instance->generic.cnt < 0xFFFF) {
|
||||
if((instance->generic.cnt + furi_hal_subghz_get_rolling_counter_mult()) >= 0xFFFF) {
|
||||
if((instance->generic.cnt + furi_hal_subghz_get_rolling_counter_mult()) > 0xFFFF) {
|
||||
instance->generic.cnt = 0;
|
||||
} else {
|
||||
instance->generic.cnt += furi_hal_subghz_get_rolling_counter_mult();
|
||||
|
||||
Reference in New Issue
Block a user