mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-19 09:31:59 +00:00
* Fix debounce to handle noisy switch transitions * Fix debounce to handle noisy switch transitions * Fix debounce to handle noisy switch transitions * Removed inline comment to see if Clang checker will be happy * Test fix for supposed Clang formatting issue
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// consecutive # of times button input must be same (<=8)
|
||||
#define DEBOUNCE_COUNT 4
|
||||
#define DEBOUNCE_MASK ((1 << DEBOUNCE_COUNT) - 1)
|
||||
|
||||
class Debounce {
|
||||
public:
|
||||
bool feed(const uint8_t bit);
|
||||
|
Reference in New Issue
Block a user