[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:
parent
57d191014b
commit
79a182f5ee
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue