Add default config for BT init and offsets for partition table

This commit is contained in:
me-no-dev 2017-04-22 16:33:07 +03:00
parent 57028ad65e
commit aad4b336d6
2 changed files with 3 additions and 4 deletions

View File

@ -23,8 +23,7 @@ bool btStarted(){
} }
bool btStart(){ bool btStart(){
esp_bt_controller_config_t cfg; esp_bt_controller_config_t cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
memset(&cfg, 0, sizeof(esp_bt_controller_config_t));
if(esp_bt_controller_get_status() == ESP_BT_CONTROLLER_STATUS_ENABLED){ if(esp_bt_controller_get_status() == ESP_BT_CONTROLLER_STATUS_ENABLED){
return true; return true;
} }

View File

@ -2,5 +2,5 @@
nvs, data, nvs, 0x9000, 0x5000 nvs, data, nvs, 0x9000, 0x5000
otadata, data, ota, 0xe000, 0x2000 otadata, data, ota, 0xe000, 0x2000
app0, app, ota_0, 0x10000, 1M, app0, app, ota_0, 0x10000, 1M,
app1, app, ota_1, , 1M, app1, app, ota_1, 0x110000,1M,
spiffs, data, spiffs, , 0x1F0000, spiffs, data, spiffs, 0x210000,0x1F0000,

1 # Name, Type, SubType, Offset, Size
2 nvs, data, nvs, 0x9000, 0x5000
3 otadata, data, ota, 0xe000, 0x2000
4 app0, app, ota_0, 0x10000, 1M,
5 app1, app, ota_1, , 1M, app1, app, ota_1, 0x110000,1M,
6 spiffs, data, spiffs, , 0x1F0000, spiffs, data, spiffs, 0x210000,0x1F0000,