Skip to content

Commit 8d42e27

Browse files
fix bl602
1 parent be0e214 commit 8d42e27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BK7231Flasher/Flashers/BL602Flasher.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,10 @@ public override bool doErase(int startSector, int sectors, bool bAll = false)
574574
var buf = new byte[2];
575575
try
576576
{
577-
serial.Read(buf, 0, 2);
577+
for(int i = 0; i < buf.Length; i++)
578+
{
579+
serial.Read(buf, i, 1);
580+
}
578581
}
579582
catch { continue; }
580583
if(buf[0] == 'O' && buf[1] == 'K')

0 commit comments

Comments
 (0)