Someone
public text v1 · immutable 14 function _ fp "Update the comparator";
15 ;;
16 MODULE_LICENSE("GPL");
17 FUNCTION(_) {
18 float tmp = in1 - in0;
19
20 if(out) {
21 if(tmp < -hyst/2.) {
22 out = 0;
23 equal = 0;
24 } else {
25 if(tmp > hyst/2.) {
26 out = 1;
27 equal = 0;
28 } else equal = 1;
29 }
30 }
31 }
32