From 8468bb50dccad93f6f78880d42f244afa588de5d Mon Sep 17 00:00:00 2001 From: thekurtovic <40248206+thekurtovic@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:07:33 -0500 Subject: [PATCH] NimBLEAddress default to including delimiter in string format --- Kconfig | 10 +++++----- src/NimBLEAddress.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Kconfig b/Kconfig index 2350114..cdd3227 100644 --- a/Kconfig +++ b/Kconfig @@ -157,12 +157,12 @@ config NIMBLE_CPP_ENABLE_ADVERTISEMENT_TYPE_TEXT while scanning as text messages in the debug log. This will use approximately 250 bytes of flash memory. -config NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER - bool "Show colon characters when printing address." - default "y" +config NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER + bool "Exclude colon characters when printing address." + default "n" help - Enabling this option will format MAC addresses with - colon characters included when printing. + Enabling this option will format MAC addresses without + colon characters when printing. config NIMBLE_CPP_ADDR_FMT_UPPERCASE bool "Use uppercase letters when printing address." diff --git a/src/NimBLEAddress.cpp b/src/NimBLEAddress.cpp index 9838f3c..2688665 100644 --- a/src/NimBLEAddress.cpp +++ b/src/NimBLEAddress.cpp @@ -23,10 +23,10 @@ # include -# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER -# define NIMBLE_CPP_ADDR_DELIMITER ":" -# else +# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER # define NIMBLE_CPP_ADDR_DELIMITER "" +# else +# define NIMBLE_CPP_ADDR_DELIMITER ":" # endif # ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE