From e31ba395d56856545d7ed0d1cef7a6dc73183fb6 Mon Sep 17 00:00:00 2001 From: h2zero Date: Thu, 27 Jun 2024 17:48:29 -0600 Subject: [PATCH] Fix build with nRF52833 when advertising extensions are enabled. --- cores/nRF5/nimble_config/ext_nimble_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cores/nRF5/nimble_config/ext_nimble_config.h b/cores/nRF5/nimble_config/ext_nimble_config.h index ae445bd..93bfff9 100644 --- a/cores/nRF5/nimble_config/ext_nimble_config.h +++ b/cores/nRF5/nimble_config/ext_nimble_config.h @@ -14,4 +14,8 @@ #ifndef min #define min(a, b) ((a)<(b)?(a):(b)) +#endif + +#ifndef max +#define max(a, b) ((a)>(b)?(a):(b)) #endif \ No newline at end of file