Skip to content

Commit

Permalink
perf: Optimize startup boost check order
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Jan 16, 2021
1 parent 98e7de9 commit 2c96991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,12 @@ t1_int_not_bidir:
mov Temp4, #0FFh
mov Temp5, #07h

jb Flag_Motor_Started, t1_int_startup_boosted ; Do not boost when changing direction in bidirectional mode

; Boost pwm during direct start
mov A, Flags_Startup
jz t1_int_startup_boosted

jb Flag_Motor_Started, t1_int_startup_boosted ; Do not boost when changing direction in bidirectional mode

; Add an extra power boost during start
mov Temp6, Startup_Stall_Cnt

Expand Down

0 comments on commit 2c96991

Please sign in to comment.