summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-03-16 23:27:04 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-03-16 23:27:04 +0800
commit24a10ef21ae6909fc07a06d51bf1382970b28c9c (patch)
treedf43fdd1098d56208279a67c0bab6e153a6cd1c0
parent4e2b33e68a03317e2d48725e003a2102be1a3396 (diff)
downloadavr-nrf24l01-driver-24a10ef21ae6909fc07a06d51bf1382970b28c9c.tar.gz
Print the address in the right order.
-rw-r--r--nrfm.c2
-rw-r--r--nrfm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/nrfm.c b/nrfm.c
index ed0983d..805c9ae 100644
--- a/nrfm.c
+++ b/nrfm.c
@@ -107,7 +107,7 @@ void radio_print_config(void)
}
read_reg_bulk(0x0A, addr, ADDRLEN);
- snprintf(s, LEN(s), "\r\n\t0x0A: %d.%d.%d", addr[0], addr[1], addr[2]);
+ snprintf(s, LEN(s), "\r\n\t0x0A: %d.%d.%d", addr[2], addr[1], addr[0]);
uart_write_line(s);
}
diff --git a/nrfm.h b/nrfm.h
index fff5439..582a469 100644
--- a/nrfm.h
+++ b/nrfm.h
@@ -6,4 +6,4 @@
void radio_init(uint8_t rxaddr[3]);
void radio_print_config(void);
-#endif
+#endif /* NRFM_H */