Skip to content

Commit

Permalink
adapt second mqtt mem check for HA to 41k
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Sep 8, 2024
1 parent fdda94a commit beeafd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/emsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1903,12 +1903,12 @@ void EMSdevice::mqtt_ha_entity_config_create() {
create_device_config = false; // only create the main config once
count++;
}
#ifndef EMSESP_STANDALONE
// #ifndef EMSESP_STANDALONE
// always create minimum one config
if (count && (heap_caps_get_free_size(MALLOC_CAP_8BIT) < 65 * 1024)) { // checks free Heap+PSRAM
if (count && (heap_caps_get_free_size(MALLOC_CAP_8BIT) < 41 * 1024)) { // checks free Heap+PSRAM
break;
}
#endif
// #endif
}
}
#if defined(EMSESP_DEBUG) || defined(EMSESP_STANDALONE)
Expand Down

0 comments on commit beeafd4

Please sign in to comment.