Skip to content

Commit

Permalink
imxrt-multi: fix loadFromFile()
Browse files Browse the repository at this point in the history
JIRA: RTOS-853
  • Loading branch information
ziemleszcz committed Jun 17, 2024
1 parent 57544f4 commit aca31d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multi/imxrt-multi/cm4.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static int loadFromFile(const char *path)
cleanInvalDCache((void *)m4_common.m4memory, m4_common.m4memorysz);

while (total < m4_common.m4memorysz) {
r = fread(buff, sizeof(buff), 1, f);
r = fread(buff, 1, sizeof(buff), f);
if (r == 0) {
if (ferror(f) != 0) {
fclose(f);
Expand Down

0 comments on commit aca31d2

Please sign in to comment.