From c97160257460f0dbf6fbcbe105f65faef2bdfd11 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Mon, 17 Jan 2022 13:47:16 +0100 Subject: [PATCH] fix: Revert telemetry timings for BB2 24MHz mode Makes sure telemetry signal doesn't produce errors with DShot600. Only apply fix 1670ce2b1089c18e8502224be733e52c1276a81d on BB1. --- Bluejay.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bluejay.asm b/Bluejay.asm index 75de8b5..613d891 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -387,7 +387,11 @@ CSEG AT 80h ; Code segment after interrupt vectors DSHOT_TLM_CLOCK EQU 24500000 ; 24.5MHz DSHOT_TLM_START_DELAY EQU -(5 * 25 / 4) ; Start telemetry after 5 us (~30 us after receiving DShot cmd) +IF MCU_48MHZ == 0 DSHOT_TLM_PREDELAY EQU 9 ; 9 timer 0 ticks inherent delay +ELSE +DSHOT_TLM_PREDELAY EQU 7 ; 7 timer 0 ticks inherent delay +ENDIF IF MCU_48MHZ == 1 DSHOT_TLM_CLOCK_48 EQU 49000000 ; 49MHz