Skip to content

Commit

Permalink
Fixed 3 little bug:
Browse files Browse the repository at this point in the history
autosoftboot will now work prooperly again
START+SELECT will now stop the animations again
It won't wait for a key release anymore, if no bootpassword is used
  • Loading branch information
Hartie95 committed Jul 8, 2016
1 parent f2f7018 commit de52770
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bootloader/source/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ bool checkPassword(char* bootPassword)
{
int passwordSize=strlen(bootPassword);

while(GetInput()!=0);

//Check if a password is set
if(!passwordSize)
return true;

while(GetInput()!=0);


info("Please insert your password to load this payload");
char currentKey[10]={0};
char currentCharacter=0;
Expand Down
2 changes: 2 additions & 0 deletions bootloader/source/payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ int loadPayload(loaderConfiguration* loader, configuration* app, int payloadSour
// Write latest section to file on coldboot
if(loader->enableAutosoftboot&&isColdboot())
{
checkFolders(LASTEST_SECTION_FILE, latestFilePath);

if(f_open(&latestFile, latestFilePath, FA_READ | FA_WRITE | FA_CREATE_ALWAYS )==FR_OK)
{
debug("Writing latest section to file: [%s]",app->section);
Expand Down
2 changes: 1 addition & 1 deletion bootloader/source/splash.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int splash_anim(char *splash_path)
while(1)
{
if (GetInput() == (KEY_SELECT|KEY_START))
frame = 0;
break;

if(isCompressionEnabled)
{
Expand Down

0 comments on commit de52770

Please sign in to comment.