EasyFlash icon indicating copy to clipboard operation
EasyFlash copied to clipboard

ef_log_read word aligned 判断错误

Open vince025 opened this issue 2 years ago • 2 comments

EfErrCode ef_log_read(size_t index, uint32_t *log, size_t size) 里 if (size % 4 == 0) { EF_DEBUG("Error: size must be word aligned."); return EF_READ_ERR; } 应该改为 if (size % 4 != 0) { EF_DEBUG("Error: size must be word aligned."); return EF_READ_ERR; }

vince025 avatar Feb 20 '23 02:02 vince025

同样的: if (index < cur_using_size) { 也要更改为: if (index >= cur_using_size) {

vince025 avatar Feb 20 '23 02:02 vince025

遇到了相同的报错

SnowSakuraKo avatar Apr 11 '23 01:04 SnowSakuraKo