Skip to content

Commit

Permalink
perf: Only check brake on stop and RCP timeout when needed
Browse files Browse the repository at this point in the history
Only necessary when RCP stop flag is set
  • Loading branch information
mathiasvr committed Sep 1, 2021
1 parent 9606623 commit 4961444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4091,7 +4091,7 @@ initial_run_phase_done:
mov Startup_Stall_Cnt, #0
setb Flag_Motor_Running

; Exit run loop after a given time
jnb Flag_Rcp_Stop, run6_check_dir ; Check if stop
jb Flag_Pgm_Bidir, run6_check_timeout ; Check if bidirectional operation

mov Temp2, #Pgm_Brake_On_Stop ; Check if using brake on stop
Expand Down

0 comments on commit 4961444

Please sign in to comment.