From 59f02573498d0d8e8bf898d98633f984fe26b174 Mon Sep 17 00:00:00 2001 From: damosvil Date: Tue, 19 Dec 2023 12:37:37 +0100 Subject: [PATCH] Dynamic pwm threshold defaults set to the correct values --- src/Modules/Isrs.asm | 2 +- src/Settings/BluejaySettings.asm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Modules/Isrs.asm b/src/Modules/Isrs.asm index f7b199b..27c0f3b 100644 --- a/src/Modules/Isrs.asm +++ b/src/Modules/Isrs.asm @@ -598,7 +598,7 @@ t1_int_max_braking_set_24khz: subb A, Pwm_Braking24_L mov A, Temp5 subb A, Pwm_Braking24_H ; Is braking pwm more than maximum allowed braking? - jc t1_int_set_pwm_24khz ; Yes - branch + jc t1_int_set_pwm_24khz ; Yes - branch mov Temp4, Pwm_Braking24_L ; No - set desired braking instead mov Temp5, Pwm_Braking24_H diff --git a/src/Settings/BluejaySettings.asm b/src/Settings/BluejaySettings.asm index 485796f..11bde3a 100644 --- a/src/Settings/BluejaySettings.asm +++ b/src/Settings/BluejaySettings.asm @@ -49,5 +49,5 @@ DEFAULT_PGM_STARTUP_POWER_MAX EQU 5 ; 0..255 => (1000..2000 Throttle): Maxim DEFAULT_PGM_BRAKING_STRENGTH EQU 255 ; 0..255 => 0..100 % Braking DEFAULT_PGM_SAFETY_ARM EQU 0 ; EDT safety arm is disabled by default -DEFAULT_96to48_THRESHOLD EQU 85 ; About 33% threshold to change between 96 and 48khz -DEFAULT_48to24_THRESHOLD EQU 170 ; About 66% threshold to change between 48 and 24khz +DEFAULT_48to24_THRESHOLD EQU 85 ; About 33% threshold to change between 48 and 24khz +DEFAULT_96to48_THRESHOLD EQU 170 ; About 66% threshold to change between 96 and 48khz