diff --git a/platform/osd-merkur-128/params.c b/platform/osd-merkur-128/params.c index 31e588ebe..f9cab9f0e 100644 --- a/platform/osd-merkur-128/params.c +++ b/platform/osd-merkur-128/params.c @@ -216,7 +216,14 @@ params_get_eui64(uint8_t *eui64) { PRINTD("Generating random EUI64 MAC\n"); generate_new_eui64(eui64); #else - {uint8_t i;for (i=0;i<8;i++) eui64[i] = pgm_read_byte_near(default_mac_address+i);} //test this + uint8_t i; +#if BOOTLOADER_GET_MAC + for (i=0;iSet EEPROM MAC address\n"); diff --git a/platform/osd-merkur-256/params.c b/platform/osd-merkur-256/params.c index 31e588ebe..f9cab9f0e 100644 --- a/platform/osd-merkur-256/params.c +++ b/platform/osd-merkur-256/params.c @@ -216,7 +216,14 @@ params_get_eui64(uint8_t *eui64) { PRINTD("Generating random EUI64 MAC\n"); generate_new_eui64(eui64); #else - {uint8_t i;for (i=0;i<8;i++) eui64[i] = pgm_read_byte_near(default_mac_address+i);} //test this + uint8_t i; +#if BOOTLOADER_GET_MAC + for (i=0;iSet EEPROM MAC address\n");