From 5cf54e724f8699ec697e3cdf9704290b1740490e Mon Sep 17 00:00:00 2001 From: Jeannette Date: Fri, 1 Mar 2024 00:08:56 -0500 Subject: [PATCH] end of day --- dbw/node_fw/mod/brake/brake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbw/node_fw/mod/brake/brake.c b/dbw/node_fw/mod/brake/brake.c index 55a9d8a51..c30b7cb2c 100644 --- a/dbw/node_fw/mod/brake/brake.c +++ b/dbw/node_fw/mod/brake/brake.c @@ -181,13 +181,13 @@ static void brake_1kHz(void) } static int lim_sw_count = 0; - printf("%d\n", lim_sw_count); + // printf("%d\n", lim_sw_count); if (gpio_get_level(LIM_SW_1) | gpio_get_level(LIM_SW_2)){ lim_sw_count++; } - if (lim_sw_count == 2){ + if (lim_sw_count == 10){ MOTOR_DIR = !MOTOR_DIR; gpio_set_level(DIR_PIN, MOTOR_DIR); lim_sw_count = 0;