CFlashUpdate: change lines for better statement readability

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9ff0512496
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-12-20 23:43:00 +01:00
parent 991fed4190
commit a141cdec40

View File

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