Skip to content

Commit

Permalink
Fixed 4B mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
StrScr committed May 31, 2017
1 parent b7ab4c5 commit 48ed687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fatgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main(int argc, char* argv[]){
FATfile.write(rechcast(&values),2);
values = 0xFFFF; // 2nd is EOF
FATfile.write(rechcast(&values),2);
FATfile.write(buffer,510); //Rest of sector remains empty.
FATfile.write(buffer,508); //Rest of sector remains empty.
for(int j=0; j<255; j++){ // Other 255 Sectors of FAT
FATfile.write(buffer,512); // 512 Bytes per Sector
}
Expand Down

0 comments on commit 48ed687

Please sign in to comment.