[fix][arm-linux] Add fclose after writing

fix https://github.com/olikraus/u8g2/issues/1638
Committer: wuhanstudio <wuhanstudio@qq.com>
This commit is contained in:
wuhanstudio 2021-10-30 19:10:23 +00:00
parent 57d191014b
commit 79a182f5ee
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ static int writeValueToFile(char* fileName, char* buff)
if (fp != NULL)
{
fwrite(buff, strlen(buff), 1, fp);
fclose(fp);
return 0;
}
return -1;