Преглед на файлове

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};