Contains a bug fix for considering tolerance
in power for a transition delta.
Setting the tolerance to 5 for a transition with 40 W delta, makes the transition a candidate match when the power change (difference
) is 36…44 W, but not 35 W or 45 W.
Default is no tolerance, and will give the transition a matching score without this constraint.
int deviation = abs(difference - pt->delta);
if (!pt->has_tolerance || deviation < pt->tolerance) {
...