low memory threshold
This commit is contained in:
parent
79f14b020d
commit
9b567fa844
@ -627,10 +627,9 @@ void loop() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// check free memory
|
// check free memory
|
||||||
//if (ESP.getFreeHeap() <= MEM_LOW) {
|
|
||||||
if (esp_get_minimum_free_heap_size() <= MEM_LOW) {
|
if (esp_get_minimum_free_heap_size() <= MEM_LOW) {
|
||||||
// ESP_LOGI(TAG, "Counter cleared (memory low = %d Bytes)", ESP.getFreeHeap());
|
ESP_LOGI(TAG, "Memory full, counter cleared (heap low water mark = %d Bytes / free heap = %d bytes)", \
|
||||||
ESP_LOGI(TAG, "Counter cleared (memory low water mark = %d Bytes)", esp_get_minimum_free_heap_size());
|
esp_get_minimum_free_heap_size(), ESP.getFreeHeap());
|
||||||
do_send(&sendjob); // send count
|
do_send(&sendjob); // send count
|
||||||
reset_counters(); // clear macs container and reset all counters
|
reset_counters(); // clear macs container and reset all counters
|
||||||
reset_salt(); // get new salt for salting hashes
|
reset_salt(); // get new salt for salting hashes
|
||||||
|
Loading…
Reference in New Issue
Block a user