Skip to content

Commit

Permalink
Fixed Bug: The change introduced in v2.9.15 to further reduce power c…
Browse files Browse the repository at this point in the history
…onsumption introduces spurious interrupts that are recognized as false button presses. This update rolls back that change.
  • Loading branch information
jbaumann committed Jun 6, 2020
1 parent 2f457d2 commit a8b0576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/ATTinyDaemon/ATTinyDaemon.ino
Expand Up @@ -11,7 +11,7 @@
*/
const uint32_t MAJOR = 2;
const uint32_t MINOR = 9;
const uint32_t PATCH = 17;
const uint32_t PATCH = 18;

const uint32_t prog_version = (MAJOR << 16) | (MINOR << 8) | PATCH;

Expand Down
2 changes: 1 addition & 1 deletion firmware/ATTinyDaemon/handleIO.ino
Expand Up @@ -39,8 +39,8 @@ uint8_t PB_READ(uint8_t pin) {
*/
void ledOff_buttonOn() {
// switch back to monitoring button
pb_input(LED_BUTTON);
pb_high(LED_BUTTON); // Input pullup
pb_input(LED_BUTTON);

PCMSK |= bit(LED_BUTTON); // set interrupt pin
GIFR |= bit(PCIF); // clear interrupts
Expand Down

0 comments on commit a8b0576

Please sign in to comment.