Browse Source

perf: Optimize startup boost check order

main
Mathias Rasmussen 4 years ago
parent
commit
2c96991ae0
  1. 4
      Bluejay.asm

4
Bluejay.asm

@ -757,12 +757,12 @@ t1_int_not_bidir:
mov Temp4, #0FFh mov Temp4, #0FFh
mov Temp5, #07h 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 ; Boost pwm during direct start
mov A, Flags_Startup mov A, Flags_Startup
jz t1_int_startup_boosted 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 ; Add an extra power boost during start
mov Temp6, Startup_Stall_Cnt mov Temp6, Startup_Stall_Cnt

Loading…
Cancel
Save