修复 S1 五连按 L2 对码并移除编译时间宏
This commit is contained in:
@@ -274,8 +274,7 @@ void board_init()
|
|||||||
#if (POWER_ON)
|
#if (POWER_ON)
|
||||||
power_on_check();
|
power_on_check();
|
||||||
#endif // (POWER_ON)
|
#endif // (POWER_ON)
|
||||||
LOGI("sdk version: %s build time: %s %s\n", TOSTRING(SDK_VERSION), __DATE__,
|
LOGI("sdk version: %s\n", TOSTRING(SDK_VERSION));
|
||||||
__TIME__);
|
|
||||||
// stack_tag();
|
// stack_tag();
|
||||||
rom_env_host_init();
|
rom_env_host_init();
|
||||||
#if (SLEEP_ENABLE)
|
#if (SLEEP_ENABLE)
|
||||||
@@ -529,4 +528,3 @@ int main(void)
|
|||||||
|
|
||||||
/// @} DRIVERS
|
/// @} DRIVERS
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ void trigger_check_process(void)
|
|||||||
//printf("对码 trig1_cnt %d\r\n",trig1_cnt);
|
//printf("对码 trig1_cnt %d\r\n",trig1_cnt);
|
||||||
if( s1_state == DB_IDLE)
|
if( s1_state == DB_IDLE)
|
||||||
{
|
{
|
||||||
rf433_sw_flag = 1;
|
rf433_sw_flag = 2; // HPW421: S1/GPIO5 is the single relay L2 pairing key
|
||||||
trig1_cnt = 0;
|
trig1_cnt = 0;
|
||||||
trig1_wait = 0;
|
trig1_wait = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user