更改成固定窗口解码模块

This commit is contained in:
2026-07-29 13:48:23 +08:00
parent 46e9db0796
commit 6d114add28
8 changed files with 437 additions and 594 deletions
@@ -253,6 +253,27 @@ static void Pairing_Candidate_Reset(void)
pair_deferred_command = 0U;
}
void rf433_clear_code(void)
{
uint8_t i;
for(i = 0U; i < 5U; i++)
{
adress_H_array[i] = 0xffU;
adress_L_array[i] = 0xffU;
}
adress = 0U;
adress_H = 0U;
adress_L = 0U;
match_success = 0U;
ssse = 1U;
time_5s = PAIRING_WINDOW_TICKS + 1U;
Pairing_Candidate_Reset();
Pairing_Feedback_Start(200U);
set_TaskComps_timer(2U, 2000U);
}
static void Encoder_key_NoCode(){
@@ -564,4 +585,3 @@ void scan_433(){