From 2c96991ae08e6cf17b44bdfb3a2568edf18c7d5a Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Sat, 16 Jan 2021 01:55:46 +0100 Subject: [PATCH] perf: Optimize startup boost check order --- Bluejay.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bluejay.asm b/Bluejay.asm index 360336a..0b30c9a 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -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