Skip to content

Commit

Permalink
end of day
Browse files Browse the repository at this point in the history
  • Loading branch information
jcirce committed Mar 1, 2024
1 parent 0995699 commit 5cf54e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbw/node_fw/mod/brake/brake.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5cf54e7

Please sign in to comment.