Replace EEPROM backend to be compatible with Adafruit BLE lib

This commit is contained in:
jacob.eva
2024-01-21 15:12:20 +00:00
parent cce8b0c18a
commit 6e8865b2ae
7 changed files with 47 additions and 542 deletions

View File

@@ -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));