Skip to content

Commit

Permalink
disablign interrupts did not work...
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Aug 18, 2012
1 parent 8839dc6 commit 8b29e07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions TinyWireS/examples/attiny_i2c_slave/attiny_i2c_slave.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,18 @@ void receiveEvent(uint8_t howMany)
return;
}

cli();
reg_position = TinyWireS.receive();
howMany--;
if (!howMany)
{
// This write was only to set the buffer for next read
sei();
return;
}
while(howMany--)
{
i2c_regs[reg_position%sizeof(i2c_regs)] = TinyWireS.receive();
reg_position++;
}
sei();
}


Expand Down

0 comments on commit 8b29e07

Please sign in to comment.