CFlashUpdate: change lines for better statement readability

This commit is contained in:
2014-12-20 23:43:00 +01:00
parent b987c9595a
commit 9ff0512496

View File

@@ -440,13 +440,18 @@ printf("[update] mode is %d\n", softupdate_mode);
return false;
}
hide();
//set internal filetype
char const * ptr = rindex(filename.c_str(), '.');
if(ptr) {
ptr++;
if(!strcmp(ptr, "bin")) fileType = 'A';
else if(!strcmp(ptr, "txt")) fileType = 'T';
else if(!allow_flash) return false;
else fileType = 0;
if(!strcmp(ptr, "bin"))
fileType = 'A';
else if(!strcmp(ptr, "txt"))
fileType = 'T';
else if(!allow_flash)
return false;
else
fileType = 0;
#ifdef DEBUG
printf("[update] manual file type: %s %c\n", ptr, fileType);
#endif