Commit 17474f0b authored by Klint Youngmeyer's avatar Klint Youngmeyer
Browse files

Make a couple edits to get 1.17 to build

parent dd786c35
......@@ -42,7 +42,15 @@ typedef struct _pyb_otp_t {
void mp_hal_get_mac(int idx, uint8_t buf[6]) {
// Check if OTP region has a valid MAC address, and use it if it does
if (OTP->series == 0x0083 && OTP->mac[0] == 0x28 && OTP->mac[1] == 0xBC && OTP->mac[2] == 0x56) {
#if __GNUC__ >= 11
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overread"
#endif
memcpy(buf, OTP->mac, 6);
#if __GNUC__ >= 11
#pragma GCC diagnostic pop
#endif
return;
}
......
......@@ -12,7 +12,7 @@
#include "py/runtime.h"
#include "py/mperrno.h"
#include "py/mphal.h"
#include "lib/netutils/netutils.h"
#include "shared/netutils/netutils.h"
#include "modnetwork.h"
#include "dma.h"
#include "spi.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment