From 61f888e952d798e689827425ce9a2ebbe971165c Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Wed, 15 Nov 2023 21:01:17 -0600 Subject: [PATCH] Add missed ifdef --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f36c7d132..d5b3895d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -156,7 +156,11 @@ void getPiMacAddr(uint8_t *dmac) const char *getDeviceName() { uint8_t dmac[6]; - +#ifdef ARCH_RASPBERRY_PI + getPiMacAddr(dmac); +#else + getMacAddr(dmac); +#endif // Meshtastic_ab3c or Shortname_abcd static char name[20]; snprintf(name, sizeof(name), "%02x%02x", dmac[4], dmac[5]);