Skip to content

Commit

Permalink
[gen3] ble: in some cases strings used in LOG_DEBUG() macros are not …
Browse files Browse the repository at this point in the history
…getting optimized out, attempt to fix that
  • Loading branch information
avtolstoy committed Jun 19, 2024
1 parent dcf2c8f commit b3e24f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hal/src/nRF52840/ble_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ using namespace particle::ble;
#define BLE_API_VERSION_2 2
#define BLE_API_VERSION_3 3

// FIXME: For some reason even though LOG_DEBUG() macro does nothing,
// the strings are not getting optimized out.
#ifndef DEBUG_BUILD
#undef LOG_DEBUG
#define LOG_DEBUG(...)
#endif // DEBUG_BUILD

//anonymous namespace
namespace {

Expand Down

0 comments on commit b3e24f2

Please sign in to comment.