emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
144 stars 34 forks source link

ui8_wheel_speed_max stuck at 6kph after applying throttle #103

Closed dzid26 closed 4 months ago

dzid26 commented 4 months ago

The else condition will never be reached if the THROTTLE_MODE / STREET_MODE_THROTTLE_MODE are defined as 2 (W_O_P_6KM_H_ONLY).

https://github.com/emmebrusa/TSDZ2-Smart-EBike-1/blob/0e553a59e1603362b1027080e46f49cf012721d0/src/ebike_app.c#L2810-L2817

dzid26 commented 4 months ago

fixed https://github.com/emmebrusa/TSDZ2-Smart-EBike-1/commit/71de690be491399312080bdd80f65e6a27b0a589#diff-7425db72b4f63e09492abf0d75c220d37769b0015c9a1dfc107b2fb68aafaa27R2809-R2812