Skip to content

Commit e53fb0d

Browse files
adding nvs_flash_init in sketch
1 parent 3ae1949 commit e53fb0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/sketch.ino.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ extern "C" {
3131
#include <sys/types.h>
3232
#include <dirent.h>
3333
#include "esp_partition.h"
34+
#include "nvs_flash.h"
3435
}
3536

3637
#include <Arduino.h>
@@ -92,6 +93,7 @@ void setupBluetooth();
9293

9394
void setup() {
9495
setDebug(debug);
96+
nvs_flash_init();
9597

9698
// put SWD and SWCLK pins connected to SAMD as inputs
9799
pinMode(15, INPUT);

0 commit comments

Comments
 (0)