diff --git a/components/BAROS32 b/components/BAROS32 index a572217..70536af 160000 --- a/components/BAROS32 +++ b/components/BAROS32 @@ -1 +1 @@ -Subproject commit a57221785078515bcd64f93df1d85099d51c1814 +Subproject commit 70536af4c0ad37dae0c20bae2ae25bccb576dea1 diff --git a/components/configulator b/components/configulator index 31da8a4..bafffed 160000 --- a/components/configulator +++ b/components/configulator @@ -1 +1 @@ -Subproject commit 31da8a4edee54d0049b09bc7f5932df9e23b792f +Subproject commit bafffedd0cf97e00f409dd294fe30a3b0ad4323b diff --git a/main/main.c b/main/main.c index bb83dca..b8d473d 100644 --- a/main/main.c +++ b/main/main.c @@ -81,7 +81,7 @@ void app_main(void) { ESP_LOGI(TAG, "MAC: [%02X:%02X:%02X:%02X:%02X:%02X]", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); - char *name = malloc(32); + char *name = malloc(BAROS_NAME_MAX_LEN); sprintf(name, "%s-%02X", TAG, mac[5]); ESP_LOGI(TAG, "name: %p", name); @@ -99,7 +99,7 @@ void app_main(void) { CFGLR_ELEMENT_STR( "device_name", name, - 32, + BAROS_NAME_MAX_LEN, name, CFGLR_SIGNALER_IDF_EVENT(), CFGLR_SIGNALER_CALLBACK(test_callback)