mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-31 04:25:17 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -24,16 +24,16 @@
|
|||
#include "utility.hpp"
|
||||
|
||||
bool Debounce::feed(const uint8_t bit) {
|
||||
history_ = (history_ << 1) | (bit & 1);
|
||||
history_ = (history_ << 1) | (bit & 1);
|
||||
|
||||
if( history_ == 0b00001111 ) {
|
||||
state_ = 1;
|
||||
return true;
|
||||
}
|
||||
if( history_ == 0b11110000 ) {
|
||||
state_ = 0;
|
||||
return true;
|
||||
}
|
||||
if (history_ == 0b00001111) {
|
||||
state_ = 1;
|
||||
return true;
|
||||
}
|
||||
if (history_ == 0b11110000) {
|
||||
state_ = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue