Преглед изворни кода

hall 100ms 防抖动

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui пре 5 година
родитељ
комит
882bc02e42
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Application/app/sox/iostate.c

+ 1 - 1
Application/app/sox/iostate.c

@@ -22,7 +22,7 @@ typedef struct io_timer{
 #define io_debounce_time 50
 
 static void io_timer_handler(shark_timer_t *t);
-static io_timer_t hall_io = {._timer.handler = io_timer_handler, .debounce_time_zero = 1000, .debounce_time_one = 2};
+static io_timer_t hall_io = {._timer.handler = io_timer_handler, .debounce_time_zero = 100, .debounce_time_one = 100};
 static io_timer_t charger_io = {._timer.handler = io_timer_handler, .debounce_time_zero = 50, .debounce_time_one = 50};
 static io_timer_t aux_short_io = {._timer.handler = io_timer_handler, .debounce_time_zero = 50, .debounce_time_one = 50};
 static io_timer_t dcdc_pwr_io = {._timer.handler = io_timer_handler, .debounce_time_zero = 50, .debounce_time_one = 50};