2 ms·
"Total: " implies that it's meant to be summing the input values. It's actually only summing the current and the previous, because it puts back val not (val +
by dllthomas 13y ago
"Total: " implies that it's meant to be summing the input values. It's actually only summing the current and the previous, because it puts back val not (val + state).