forked from Kegbot/kegboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: add experimental software debounce.
Suspected EMI transients have been observed spuriously triggering the external interrupt lines on some systems. Likely this is better solved in hardware, however this is not as convenient as a software fix. When enabled, ISRs first delay by a fixed about (~1.2ms currently) and then inspects the active-low interrupting pin. The delay amount was selected somewhat empirically (with a non-SF800 sensor) and likely requires tuning to account for differences in sensors.
- Loading branch information
Showing
3 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters