Skip to content

Commit

Permalink
Increase delay between each write to EEPROM
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdinotech committed Apr 12, 2017
1 parent 1785ffc commit 6d37b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/EEPROM/src/EEPROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void CurieRestoreMemory(uint32_t* buffer, uint32_t size)
rom_wr_ctrl |= 0x00000001; //set (WR_REQ) bit
*(uint32_t*)(ROM_WR_CTRL) = rom_wr_ctrl;

delay(3); //give it enough time to finish writing
delay(5); //give it enough time to finish writing
}
}

Expand Down Expand Up @@ -121,5 +121,5 @@ void CurieWrite8(uint32_t address, uint8_t data)
rom_wr_ctrl |= 0x00000001; //set (WR_REQ) bit
*(uint32_t*)(ROM_WR_CTRL) = rom_wr_ctrl;

delay(3); //give it enough time to finish writing
delay(5); //give it enough time to finish writing
}

0 comments on commit 6d37b45

Please sign in to comment.