Skip to content

Commit 26804b6

Browse files
authored
Merge pull request #688 from manchoz/plc_license
Add PLC runtime license entry to QSPIF OTP
2 parents a7f93af + cbb678d commit 26804b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

variants/OPTA/opta_info.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ typedef struct __attribute__((packed)) {
1717
uint16_t pid;
1818
uint8_t mac_address[6];
1919
uint8_t mac_address_2[6];
20-
} OptaBoardInfo;
20+
uint8_t plc_license[16];
21+
} OptaBoardInfo;

variants/OPTA/variant.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ bool getSecureFlashData() {
282282
static SecureQSPIFBlockDevice secure_root;
283283
secure_root.init();
284284
// read secure sector 2 ( address 1 << 13 )
285-
ret = secure_root.readSecure(temp_buf, (1 << 13), sizeof(OptaBoardInfo));
285+
ret = secure_root.readSecure(temp_buf, (1 << 13), sizeof(temp_buf));
286286
memcpy(&info, &temp_buf[1], sizeof(OptaBoardInfo));
287287
if (info.magic == OTP_QSPI_MAGIC) {
288288
_boardInfo = (uint8_t*)&info;

0 commit comments

Comments
 (0)