Skip to content

Commit

Permalink
Changed to my own version of USIWire until my pull request is accepte…
Browse files Browse the repository at this point in the history
…d. This allows us to turn off the watchdog as soon as the interrupt is called.
  • Loading branch information
jbaumann committed Jul 18, 2020
1 parent 0918aad commit 6d3676e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/ATTinyDaemon/handleI2C.ino
Expand Up @@ -5,6 +5,7 @@ void init_I2C() {
Wire.begin(I2C_ADDRESS);
Wire.onRequest(request_event);
Wire.onReceive(receive_event);
Wire.onInterrupt(disable_watchdog);
}

/*
Expand Down Expand Up @@ -35,7 +36,7 @@ Register register_number;

void receive_event(int bytes) {

disable_watchdog();
//disable_watchdog();

i2c_triggered_state_change();

Expand Down

0 comments on commit 6d3676e

Please sign in to comment.