Skip to content

Commit 9b4a937

Browse files
committed
Print a node marking node #0 as the PLCA coordinator.
1 parent 85e6357 commit 9b4a937

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/T1SPlcaSettings.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ T1SPlcaSettings::T1SPlcaSettings(uint8_t const node_id,
4545
size_t T1SPlcaSettings::printTo(Print & p) const
4646
{
4747
char msg[128] = {0};
48+
4849
snprintf(msg,
4950
sizeof(msg),
5051
"PLCA\n" \
51-
"\tnode id : %d\n" \
52+
"\tnode id : %d%s\n" \
5253
"\tnode count : %d\n" \
5354
"\tburst count : %d\n" \
5455
"\tburst timer : %d",
5556
_node_id,
57+
(_node_id == 0) ? " (PLCA Coordinator)" : "",
5658
_node_count,
5759
_burst_count,
5860
_burst_timer);

0 commit comments

Comments
 (0)