mc: add some brackets to make gcc happy and code easier to follow

This commit is contained in:
riccardom 2012-03-17 20:01:50 +00:00
parent b2467a6032
commit 855a6db00f
1 changed files with 4 additions and 0 deletions

View File

@ -202,11 +202,15 @@ void fw_reset_com(memory_chip_t *mc)
if (fp)
{
if (fwrite(&mc->data[0x3FF00], 1, 0x100, fp) == 0x100) // User Settings
{
if (fwrite(&mc->data[0x0002A], 1, 0x1D6, fp) == 0x1D6) // WiFi Settings
{
if (fwrite(&mc->data[0x3FA00], 1, 0x300, fp) == 0x300) // WiFi AP Settings
printf(" - done\n");
else
printf(" - failed\n");
}
}
fclose(fp);
}
else