From 6a4d062f7d24c32132fe4c0a956fa72a44909431 Mon Sep 17 00:00:00 2001 From: Ben Blazak Date: Thu, 25 Jul 2013 15:43:15 -0700 Subject: [PATCH] (fixed small error; oops) --- firmware/lib/eeprom/atmega32u4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/lib/eeprom/atmega32u4.c b/firmware/lib/eeprom/atmega32u4.c index 0a565e1..e91989d 100644 --- a/firmware/lib/eeprom/atmega32u4.c +++ b/firmware/lib/eeprom/atmega32u4.c @@ -380,7 +380,7 @@ static void write_queued(void) { // copy 1 byte write( next_write.to, eeprom__read( (uint8_t *) next_copy.from ) ); // prepare for the next - if (next_write.to < next_write.from) { + if (next_write.to < next_copy.from) { ++(next_write.to); ++(next_copy.from); } else {