Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EepromMcuReadBuffer: Read back from cache
Read back information from cache instead of flash. The cache contains the latest context, whereas the flash is only updated periodically. This could cause issues if the flash is not (yet) updated while the context has been updated in the meantime and values are read by LoRaMAC. Therefore just read from flash initially after startup (EepromMcuInit()) and rely on write cache later. This commit effectively makes commit e31d3c1 work for me and therefore is a fix. Previous attemps to use commit e31d3c1... without this commit failed. Error message: "Duty cycle restricted". The error message might not appear at the first startup, but will appear if Raspberry Pi Pico is restarted and values from "EEPROM" / Flash have been read.
- Loading branch information