diff options
Diffstat (limited to 'firmware/src/main.c')
-rw-r--r-- | firmware/src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/src/main.c b/firmware/src/main.c index 18e4564..5abd68a 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -5,6 +5,7 @@ #include <zephyr/kernel.h> #include <zephyr/sys/util.h> +#include "eui64.h" #include "data_link.h" #define UART_DEVICE_NODE DT_CHOSEN(zephyr_shell_uart) @@ -13,7 +14,12 @@ static const struct device *const uart_dev = DEVICE_DT_GET(UART_DEVICE_NODE); int main(void) { if (!device_is_ready(uart_dev)) { - printk("UART device not found!"); + printk("UART device not found"); + return 0; + } + + if (!eui64_available()) { + printk("No EUI-64 address available"); return 0; } |