Skip to content

Commit 72c35f1

Browse files
fx
1 parent 37ec74c commit 72c35f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WiFiProgram/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,18 +467,18 @@ void realMain(string[] args) {
467467
}
468468
if(read)
469469
{
470-
MemoryStream ms = readChunk(startAddr / SECTOR_SIZE, length);
470+
MemoryStream ms = readChunk(startAddr, length);
471471
File.WriteAllBytes(filename,ms.ToArray());
472472
}
473473
if (verify)
474474
{
475475
byte[] d = File.ReadAllBytes(filename);
476-
MemoryStream ms = readChunk(startAddr / SECTOR_SIZE, d.Length);
476+
MemoryStream ms = readChunk(startAddr, d.Length);
477477
}
478478
if (write)
479479
{
480480
byte[] d = File.ReadAllBytes(filename);
481-
writeChunk(startAddr / SECTOR_SIZE, d);
481+
writeChunk(startAddr, d);
482482
}
483483
if(test)
484484
{

0 commit comments

Comments
 (0)