mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CFlashUpdate: change lines for better statement readability
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user