1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

subghz counter freeze mode

This commit is contained in:
MX
2025-11-04 19:28:30 +03:00
parent c87205fe9a
commit f177c0491d
3 changed files with 12 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ static void subghz_protocol_encoder_came_atomo_get_upload(
} else {
instance->generic.cnt++;
}
} else {
} else if(came_atomo_counter_mode == 2) {
// Mode 2
// 0x807B / 0x807C / 0x007B / 0x007C
if(instance->generic.cnt != 0x807B && instance->generic.cnt != 0x807C &&
@@ -231,6 +231,8 @@ static void subghz_protocol_encoder_came_atomo_get_upload(
} else {
instance->generic.cnt++;
}
} else {
// Mode 3 - Freeze counter
}
// Save original button for later use

View File

@@ -251,7 +251,7 @@ static bool subghz_protocol_keeloq_gen_data(
} else {
instance->generic.cnt++;
}
} else {
} else if(keeloq_counter_mode == 5) {
// Mode 5
// 0000 / FFFF
if((instance->generic.cnt + 0x1) > 0xFFFF) {
@@ -259,6 +259,8 @@ static bool subghz_protocol_keeloq_gen_data(
} else {
instance->generic.cnt = 0xFFFF;
}
} else {
// Mode 6 - Freeze counter
}
}
if(prog_mode == PROG_MODE_OFF) {