mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 03:45:46 +00:00
Add missed ifdef
This commit is contained in:
parent
a144d5d6cc
commit
61f888e952
@ -156,7 +156,11 @@ void getPiMacAddr(uint8_t *dmac)
|
|||||||
const char *getDeviceName()
|
const char *getDeviceName()
|
||||||
{
|
{
|
||||||
uint8_t dmac[6];
|
uint8_t dmac[6];
|
||||||
|
#ifdef ARCH_RASPBERRY_PI
|
||||||
|
getPiMacAddr(dmac);
|
||||||
|
#else
|
||||||
|
getMacAddr(dmac);
|
||||||
|
#endif
|
||||||
// Meshtastic_ab3c or Shortname_abcd
|
// Meshtastic_ab3c or Shortname_abcd
|
||||||
static char name[20];
|
static char name[20];
|
||||||
snprintf(name, sizeof(name), "%02x%02x", dmac[4], dmac[5]);
|
snprintf(name, sizeof(name), "%02x%02x", dmac[4], dmac[5]);
|
||||||
|
Loading…
Reference in New Issue
Block a user