AltairZ80: Fixed confusing call to memset
This commit is contained in:
parent
2b81dd4710
commit
ea5b1dc6fe
1 changed files with 2 additions and 2 deletions
|
@ -585,8 +585,8 @@ static void VFDHD_Command(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&sdata.u.preamble, 0, 40);
|
memset(&sdata.u.preamble, 0, 40);
|
||||||
memset(&sdata.u.ecc, 0, 5); /* Clear out the ECC and ECC Valid bytes */
|
memset(&sdata.u.ecc, 0, 4); /* Clear out the ECC bytes */
|
||||||
sdata.u.ecc_valid = 0xAA;
|
sdata.u.ecc_valid = 0xAA; /* Set the ECC Valid byte */
|
||||||
for(vfdhd_info->datacount = 0; sdata.raw[vfdhd_info->datacount] == 0x00; vfdhd_info->datacount++) {
|
for(vfdhd_info->datacount = 0; sdata.raw[vfdhd_info->datacount] == 0x00; vfdhd_info->datacount++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue