I don't assume the motor is failing. I've just noticed that when I resume pedaling, there's an additional braking force (more strain on my legs than if I were riding with the motor completely off). This force disappears after a few seconds, when the motor begins to provide assistance again. It feels as if the motor is trying to rotate in the opposite direction, only to reverse direction after a few seconds. I think this is due to the incorrect motor operating parameters I've set. Unfortunately, I don't know which parameters I'm referring to.
The term "motor braking" you used is just an impression, because if the sprag clutch is working properly, the motor doesn't prevent the pedals from turning, even if it's locked. I interpreted it as a delay in reactivating the assistance when you've just stopped pedaling.
I asked you to try v20.1C.5 because in the latest version 5-update-1, I increased the minimum rpm for reactivating the motor, and this should have improved the situation.
I suspected I'd introduced a bug, but I checked carefully and ruled it out.
The delay in reactivating the assistance is a known issue, already reported by others, but not since the latest version, but always. It's a problem that only occurs under certain conditions; it rarely happens to me.
Finding the cause has always been on my to-do list.
I've been analyzing the code carefully these days and think I've figured out the cause of the delay in reactivating the assistance.
However, reading your description, I'm not sure if this is the same problem.
Now enjoy your vacation; I'll send you a new version to try before the end of the month.
Here's the update that fixes the delay in reactivating the motor.
It's not necessary to update the display; if you've installed v20.1C.5-update-1, just update the motor.
https://github.com/emmebrusa/TSDZ2-....5-update-1-860C/TSDZ2-vv20.1C.5-1-1-860C.hex
As soon as you can try it, let me know if it works.
I recommend everyone try this update,
because it's significantly improved even when starting from a standstill.
The stock display version is also updated; anyone who wants to try it can download the master version.
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1/archive/refs/heads/master.zip