Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nhorvath committed Mar 23, 2019
1 parent db5904a commit 587ebd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ EEPROMClass::EEPROMClass()
if (!fd)
return;
auto bytes = fread(m_buf, 1, sizeof(m_buf), fd);
if (!bytes)
trace("Warning: no bytes read when loading EEPROM.\n");
fclose(fd);
}

Expand Down

0 comments on commit 587ebd5

Please sign in to comment.