emmebrusa / TSDZ2-Smart-EBike-1

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

Duplicates ui8_pedal_torque_per_10_bit_ADC_step_x100_array[TORQUE_STEP_DEFAULT] #108

Closed dzid26 closed 3 weeks ago

dzid26 commented 1 month ago

Line ui8_pedal_torque_per_10_bit_ADC_step_x100_array[TORQUE_STEP_DEFAULT] = PEDAL_TORQUE_PER_10_BIT_ADC_STEP_X100 appears 3 times. It would be good to modify this so that there is no duplication and the intention is clear.

https://github.com/emmebrusa/TSDZ2-Smart-EBike-1/blob/ad782fd3b5691bbf9400e01387ef65ae0ceded79/src/ebike_app.c#L305-L313

emmebrusa commented 3 weeks ago

I saw the report but then forgot about it. It's a bug. Fixed.

There was also a problem with the power limits, fixed that too.