Skip to content

Commit 4ad1efd

Browse files
committed
Ensure getSecureFlashData is called before QSPIFBlockDevice constructor
1 parent d683edf commit 4ad1efd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: variants/OPTA/variant.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,15 @@ bool getSecureFlashData() {
296296
return ret == QSPI_STATUS_OK;
297297
}
298298

299+
class SecureQSPIReader {
300+
public:
301+
SecureQSPIReader() {
302+
getSecureFlashData();
303+
}
304+
};
305+
306+
SecureQSPIReader __reader __attribute__ ((init_priority (101)));
307+
299308
uint8_t* boardInfo() {
300309
return _boardInfo;
301310
}

0 commit comments

Comments
 (0)