From 0ce3a0a764bf71b0d66588278a99b2006c834b27 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Wed, 8 Aug 2018 09:27:15 -0400 Subject: [PATCH] coco2cart: adjust sdc return to match 256 byte sectors --- Kernel/platform-coco2cart/devsdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-coco2cart/devsdc.c b/Kernel/platform-coco2cart/devsdc.c index 547c63c1..dbfe2e17 100644 --- a/Kernel/platform-coco2cart/devsdc.c +++ b/Kernel/platform-coco2cart/devsdc.c @@ -120,7 +120,7 @@ static uint8_t sdc_transfer(uint8_t minor, bool is_read, uint8_t rawflag) nb++; } /* Huzzah! success! */ - return nb << 9; + return nb << 8; /* Boo! failure */ fail: sdc_reg_ctl = 0x00; udata.u_error = EIO; -- 2.34.1