We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7f93af + cbb678d commit 26804b6Copy full SHA for 26804b6
variants/OPTA/opta_info.h
@@ -17,4 +17,5 @@ typedef struct __attribute__((packed)) {
17
uint16_t pid;
18
uint8_t mac_address[6];
19
uint8_t mac_address_2[6];
20
-} OptaBoardInfo;
+ uint8_t plc_license[16];
21
+} OptaBoardInfo;
variants/OPTA/variant.cpp
@@ -282,7 +282,7 @@ bool getSecureFlashData() {
282
static SecureQSPIFBlockDevice secure_root;
283
secure_root.init();
284
// read secure sector 2 ( address 1 << 13 )
285
- ret = secure_root.readSecure(temp_buf, (1 << 13), sizeof(OptaBoardInfo));
+ ret = secure_root.readSecure(temp_buf, (1 << 13), sizeof(temp_buf));
286
memcpy(&info, &temp_buf[1], sizeof(OptaBoardInfo));
287
if (info.magic == OTP_QSPI_MAGIC) {
288
_boardInfo = (uint8_t*)&info;
0 commit comments