I am having a strange problem with my assist level automatically being set to zero mid ride, and I can't quite figure out why. To get the motor working again, I simply use the display to set assist back up to the desired level. Note, the display never turns off or loses power, it remains on the entire time.
I'm using Torque From X4 firmware and a KT-LCD5 controller.
I have looked through the source code and cannot seem to find any location where assist level is being set to zero. Only place I can see ui8_assistlevel_global being set at all is either in display.c when data is received from the display, or in the controllerstate_init function.
I thought perhaps under voltage detection or something like that might revert assist to zero, but it does not.
The controller is definitely not overheating, it and the motor is barely warm when it happens.
My next test will be to run the controller without the display just to rule out anything being caused by the display itself, but if anyone else has experienced anything similar I'd love to hear about it.