Browse Source

update

master
zhaohe 3 years ago
parent
commit
16cba22cd1
  1. 3
      APP/board.h
  2. 2
      APP/service/light_control_service.c
  3. 10
      APP/service/thisdevice.h

3
APP/board.h

@ -3,6 +3,3 @@
#define KEY_PERIOD 20 #define KEY_PERIOD 20
#define EXCEPTION_CHECK_PERIOD 50 #define EXCEPTION_CHECK_PERIOD 50
#define AUTO_SHUTDOWN_ONE_LIGHT_EQ_TIME_S 20 //自动关机时,一个灯等效的时间
#define INTERMITTENTMODE_PERIOD_S 100 //间歇工作模式的时间间隔

2
APP/service/light_control_service.c

@ -104,7 +104,7 @@ void lcs_schedule_process() {
return; return;
} }
//active_input //active_input
if (thisDevice.active_input != knone_active && systicket_haspassedms(thisDevice.active_start_ticket) >= 1500) {
if (thisDevice.active_input != knone_active && systicket_haspassedms(thisDevice.active_start_ticket) >= kconst_flash_auto_close_time) {
thisDevice.active_input = knone_active; thisDevice.active_input = knone_active;
} }
// //

10
APP/service/thisdevice.h

@ -37,10 +37,12 @@ typedef struct {
} ThisDevice_t; } ThisDevice_t;
#define kconst_flash_auto_close_time (3000)
// #define kconst_countdown_step_s (15 * 60)
#define kconst_countdown_step_s (10)
#define kconst_flash_auto_close_time (1500) //按键输入状态有效时间
#define kconst_countdown_step_s (10) //倒计时每按一次按键,倒计时增加时间
#define kconst_active_input_light_flick_interval_ms (150) //按键输入状态闪烁间隔时间
#define INTERMITTENTMODE_PERIOD_S 15 //间歇工作模式的时间间隔
#define KEY_PERIOD 20
#define EXCEPTION_CHECK_PERIOD 50
#define kconst_active_input_light_flick_interval_ms (150)
extern ThisDevice_t thisDevice; extern ThisDevice_t thisDevice;
Loading…
Cancel
Save