typo , should be SR but wrote CR
Closed this issue · 3 comments
WinflyLam commented
typo on line 56 of FlashStorage.cpp
#if defined(__SAMD51__)
// Invalidate all CMCC cache entries if CMCC cache is enabled.
static void invalidate_CMCC_cache()
{
if (CMCC->CR.bit.CSTS) { <--- SR.bit.CSTS
CMCC->CTRL.bit.CEN = 0;
while (CMCC->SR.bit.CSTS) {}
CMCC->MAINT0.bit.INVALL = 1;
CMCC->CTRL.bit.CEN = 1;
}
}
#endif
obra commented
dhalbert commented
This fix is correct. I looked at my old work on this and it appears that I fixed this locally but somehow it did not get committed during the PR. I have a FlashStorage.cpp
and FlashStorage.cpp~
, and this is the diff!
56c56
< if (CMCC->SR.bit.CSTS) {
---
> if (CMCC->CR.bit.CSTS) {
If you submit a PR I will approve it!