mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-20 15:20:33 -04:00
Replace EEPROM backend to be compatible with Adafruit BLE lib
This commit is contained in:
parent
cce8b0c18a
commit
6e8865b2ae
7 changed files with 47 additions and 542 deletions
|
@ -54,6 +54,12 @@ void setup() {
|
|||
Serial.setRxBufferSize(CONFIG_UART_BUFFER_SIZE);
|
||||
#endif
|
||||
|
||||
#if MCU_VARIANT == MCU_NRF52
|
||||
if (!eeprom_begin()) {
|
||||
Serial.write("EEPROM initialisation failed.\r\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
// Seed the PRNG
|
||||
randomSeed(analogRead(0));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue