Skip to content

Commit

Permalink
fix slccmpt01 close
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-hofmeier committed Jul 22, 2023
1 parent 57fcc8b commit c055e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios_mcp/source/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,19 +1094,19 @@ static void option_flashBoot1(void){
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error reading boot1.img -%X", -read_bytes);
goto end;
}
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing %d bytes to slccmpt! CONFIRM?", res);
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing %d bytes to slccmpt! CONFIRM?", read_bytes);
waitButtonInput();
gfx_print(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Writing...");
res = FSA_RawOpen(fsaHandle, "/dev/slccmpt01", &fileHandle);
if(res<0){
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error opening slccmpt -%X", -res);
goto end;
}
res = FSA_RawWrite(fsaHandle, buffer, 1, read_bytes, 0, fileHandle);
res = FSA_RawWrite(fsaHandle, buffer, 2048, (read_bytes + 2047)/2048, 0, fileHandle);
if(res<0){
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error writing slcmpt -%X", -res);
}
res = FSA_RawClose(fileHandle, fileHandle);
res = FSA_RawClose(fsaHandle, fileHandle);
if(res<0){
gfx_printf(16, index+= CHAR_SIZE_DRC_Y + 4, 0, "Error closing slcmpt -%X", -res);
}
Expand Down

0 comments on commit c055e0c

Please sign in to comment.