From aad4b336d63e7dbd472b3117fcee53856f1f7dc5 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 22 Apr 2017 16:33:07 +0300 Subject: [PATCH] Add default config for BT init and offsets for partition table --- cores/esp32/esp32-hal-bt.c | 3 +-- tools/partitions/default.csv | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cores/esp32/esp32-hal-bt.c b/cores/esp32/esp32-hal-bt.c index 0bed8e80..35899c31 100644 --- a/cores/esp32/esp32-hal-bt.c +++ b/cores/esp32/esp32-hal-bt.c @@ -23,8 +23,7 @@ bool btStarted(){ } bool btStart(){ - esp_bt_controller_config_t cfg; - memset(&cfg, 0, sizeof(esp_bt_controller_config_t)); + esp_bt_controller_config_t cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT(); if(esp_bt_controller_get_status() == ESP_BT_CONTROLLER_STATUS_ENABLED){ return true; } diff --git a/tools/partitions/default.csv b/tools/partitions/default.csv index c6e5dd7e..253fb480 100644 --- a/tools/partitions/default.csv +++ b/tools/partitions/default.csv @@ -2,5 +2,5 @@ nvs, data, nvs, 0x9000, 0x5000 otadata, data, ota, 0xe000, 0x2000 app0, app, ota_0, 0x10000, 1M, -app1, app, ota_1, , 1M, -spiffs, data, spiffs, , 0x1F0000, +app1, app, ota_1, 0x110000,1M, +spiffs, data, spiffs, 0x210000,0x1F0000,