NimBLEAddress default to including delimiter in string format

This commit is contained in:
thekurtovic 2025-01-07 14:07:33 -05:00 committed by Ryan Powell
parent 1088ad8fe1
commit 8468bb50dc
2 changed files with 8 additions and 8 deletions

10
Kconfig
View file

@ -157,12 +157,12 @@ config NIMBLE_CPP_ENABLE_ADVERTISEMENT_TYPE_TEXT
while scanning as text messages in the debug log. while scanning as text messages in the debug log.
This will use approximately 250 bytes of flash memory. This will use approximately 250 bytes of flash memory.
config NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER config NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER
bool "Show colon characters when printing address." bool "Exclude colon characters when printing address."
default "y" default "n"
help help
Enabling this option will format MAC addresses with Enabling this option will format MAC addresses without
colon characters included when printing. colon characters when printing.
config NIMBLE_CPP_ADDR_FMT_UPPERCASE config NIMBLE_CPP_ADDR_FMT_UPPERCASE
bool "Use uppercase letters when printing address." bool "Use uppercase letters when printing address."

View file

@ -23,10 +23,10 @@
# include <algorithm> # include <algorithm>
# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER # ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER
# define NIMBLE_CPP_ADDR_DELIMITER ":"
# else
# define NIMBLE_CPP_ADDR_DELIMITER "" # define NIMBLE_CPP_ADDR_DELIMITER ""
# else
# define NIMBLE_CPP_ADDR_DELIMITER ":"
# endif # endif
# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE # ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE