OpenSourceEBike / TSDZ2-Smart-EBike

Flexible OpenSource firmware for TongSheng TSDZ2 mid drive ebike motor
GNU General Public License v3.0
251 stars 130 forks source link

Updates to UART Receiver to fix 'Assist Level 3' #148

Closed 4var1 closed 3 years ago

4var1 commented 3 years ago

Amend UART2_RX_IRQHandler - remove state machine, replace with shorter ISR that only writes to ringbuffer and does no processing. Move state machine to new, separate packet_assembler() that reads the buffer and assembles packets for processing - keeps the original state machine algorithm.

4var1 commented 3 years ago

Thanks - Will make sure I use better commit titles in future now I know where it appears! Have just submitted another tiny update - but at least it changes the last commit name. :) Cheers, Ben

On Thu, 28 Jan 2021 at 17:58, casainho notifications@github.com wrote:

Merged #148 https://github.com/OpenSourceEBike/TSDZ2-Smart-EBike/pull/148 into master.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenSourceEBike/TSDZ2-Smart-EBike/pull/148#event-4262415288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRDIVXS37KHW54H6TEL4R3S4GQTXANCNFSM4WXNPMIA .