fix(atapi): fix size in send_packet

This commit is contained in:
Malo Lecomte 2021-07-29 03:57:05 +02:00
parent 9618d0d55a
commit b2e8290306

View File

@ -132,7 +132,7 @@ void *read_block(size_t lba)
pkt.lba_hi = (lba >> 0x18) & 0xff;
pkt.transfer_length_lo = 1;
send_packet(&pkt, a_drive.reg, PACKET_SZ);
send_packet(&pkt, a_drive.reg, CD_BLOCK_SZ);
// we can now read
uint16_t *buf = (uint16_t *)block;