fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.37k stars 421 forks source link

fix: ignore null on thermal change calculation #1139

Closed pedrolamas closed 1 year ago

pedrolamas commented 1 year ago

We currently use the last (most recent) thermal history item and the 5th oldest from that and calculate the thermal change.

This was working fine as up until now the thermal history was always a valid number, however the TMC2240 can report null.

As such this PR changes the behavior to the following:

Fixes #1138