Skip to content

Commit 8468bb5

Browse files
thekurtovich2zero
authored andcommitted
NimBLEAddress default to including delimiter in string format
1 parent 1088ad8 commit 8468bb5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ config NIMBLE_CPP_ENABLE_ADVERTISEMENT_TYPE_TEXT
157157
while scanning as text messages in the debug log.
158158
This will use approximately 250 bytes of flash memory.
159159

160-
config NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER
161-
bool "Show colon characters when printing address."
162-
default "y"
160+
config NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER
161+
bool "Exclude colon characters when printing address."
162+
default "n"
163163
help
164-
Enabling this option will format MAC addresses with
165-
colon characters included when printing.
164+
Enabling this option will format MAC addresses without
165+
colon characters when printing.
166166

167167
config NIMBLE_CPP_ADDR_FMT_UPPERCASE
168168
bool "Use uppercase letters when printing address."

src/NimBLEAddress.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
# include <algorithm>
2525

26-
# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_INCLUDE_DELIMITER
27-
# define NIMBLE_CPP_ADDR_DELIMITER ":"
28-
# else
26+
# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_EXCLUDE_DELIMITER
2927
# define NIMBLE_CPP_ADDR_DELIMITER ""
28+
# else
29+
# define NIMBLE_CPP_ADDR_DELIMITER ":"
3030
# endif
3131

3232
# ifdef CONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE

0 commit comments

Comments
 (0)