Skip to content

Commit e4bd1e4

Browse files
authored
docs: clarify ESP32 mempool version gate
1 parent b40b6b3 commit e4bd1e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/nimble/porting/nimble/include/os/os_mempool.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#endif
3838

3939
#if defined(ESP_ARDUINO_VERSION)
40+
/* Arduino ESP32 core 3.3.11+ dropped the legacy r_ prefix for these mempool symbols. */
4041
#define NIMBLE_OS_MEMPOOL_USE_ROM_R_PREFIX (ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 3, 11))
4142
#else
4243
#define NIMBLE_OS_MEMPOOL_USE_ROM_R_PREFIX 1
@@ -415,6 +416,7 @@ os_error_t os_memblock_put(struct os_mempool *mp, void *block_addr);
415416
}
416417
#endif
417418

419+
/* Keep this version gate local to this header. */
418420
#undef NIMBLE_OS_MEMPOOL_USE_ROM_R_PREFIX
419421

420422
#endif /* _OS_MEMPOOL_H_ */

0 commit comments

Comments
 (0)