ToyKeeper / anduril

Anduril 2 Flashlight Firmware and FSM UI Toolkit
GNU General Public License v3.0
199 stars 48 forks source link

Avoid overflow of `ticks_since_adjust`. #73

Open dpse opened 2 months ago

dpse commented 2 months ago

ticks_since_adjust may overflow when gradual target matches actual level causing faster or slower adjustment when gradual target changes.

SiteRelEnby commented 2 months ago

Nice, I think this might fix a weird bug I've been looking into for a while, I'll test later today.