mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-28 11:59:21 +00:00
amend psudocode
This commit is contained in:
parent
8807498057
commit
fe3629a05c
@ -9,6 +9,8 @@ matrix scanning:
|
|||||||
pointer: where in the circular buffer are we?
|
pointer: where in the circular buffer are we?
|
||||||
sum: sum of values in the circular buffer, so that we don't have to access the whole buffer, just 2 elements.
|
sum: sum of values in the circular buffer, so that we don't have to access the whole buffer, just 2 elements.
|
||||||
|
|
||||||
|
special case: initialization
|
||||||
|
return unfiltered value if the buffer is not filled yet
|
||||||
|
|
||||||
get value out, update sensor boundaries only if sma initialized
|
get value out, update sensor boundaries only if sma initialized
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user