Skip to content

Commit

Permalink
Merge branch 'bugfix/remove_global_min_max_def_v4.3' into 'release/v4.3'
Browse files Browse the repository at this point in the history
fix(nimble): Removed global min/max definition causing problems with other libraries(v4.3)

See merge request espressif/esp-idf!25587
  • Loading branch information
rahult-github committed Sep 8, 2023
2 parents 7bc232a + 1d62bea commit d6d55aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion examples/bluetooth/nimble/blemesh/main/app_mesh.c
Expand Up @@ -44,8 +44,15 @@ static int recent_test_id = STANDARD_TEST_ID;

#define FAULT_ARR_SIZE 2

static bool has_reg_fault = true;
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif

#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif

static bool has_reg_fault = true;

static struct bt_mesh_cfg_srv cfg_srv = {
.relay = BT_MESH_RELAY_DISABLED,
Expand Down

0 comments on commit d6d55aa

Please sign in to comment.