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
No known key found for this signature in database
GPG key ID: 0B92E083BBCCAA1E
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));