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