Skip to content

Commit

Permalink
Add a macro condition to ensure backward compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Eduard Deperschmidt <[email protected]>
  • Loading branch information
eduard156d committed Oct 19, 2024
1 parent 00cd187 commit 5e023ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/HomieDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,13 @@ void HomieDevice::Loop()


static uint32_t ulFreeHeap=0xFFFFFFF;
static uint32_t ulFreeHeapContig=0xFFFFFFF;
#if defined(ARDUINO_ARCH_ESP8266)
static uint8_t uHeapFrag=0;
static uint8_t uHeapFrag=0;
#if ARDUINO_ESP8266_GIT_DESC < 3
static uint16_t ulFreeHeapContig=0xFFFF;
#else
static uint32_t ulFreeHeapContig=0xFFFFFFF;
#endif
#endif

if(bEvenSecond)
Expand Down

0 comments on commit 5e023ea

Please sign in to comment.