Skip to content

Commit 42ff12f

Browse files
restyled-commitswqx6
authored andcommitted
Restyled by clang-format
1 parent 796be20 commit 42ff12f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/platform/esp32/common/CommonDeviceCallbacks.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ void CommonDeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, i
100100
static_cast<unsigned int>(heap_caps_get_total_size(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL)),
101101
static_cast<unsigned int>(heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM)),
102102
static_cast<unsigned int>(heap_caps_get_total_size(MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM)));
103-
104103
}
105104

106105
void CommonDeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event)

src/platform/ESP32/CHIPMem-Platform.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
#include <atomic>
3030
#include <cstdio>
3131
#include <cstring>
32-
#include <stdlib.h>
3332
#include <esp_heap_caps.h>
34-
33+
#include <stdlib.h>
3534

3635
namespace chip {
3736
namespace Platform {
@@ -117,9 +116,9 @@ void * MemoryRealloc(void * p, size_t size)
117116
#ifdef CONFIG_CHIP_MEM_ALLOC_MODE_INTERNAL
118117
p = heap_caps_realloc(p, size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
119118
#elif defined(CONFIG_CHIP_MEM_ALLOC_MODE_EXTERNAL)
120-
p = heap_caps_realloc(p, size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
119+
p = heap_caps_realloc(p, size, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
121120
#else
122-
p = realloc(p, size);
121+
p = realloc(p, size);
123122
#endif
124123
return p;
125124
}

0 commit comments

Comments
 (0)