From: Brett Gordon Date: Tue, 14 Aug 2018 02:07:14 +0000 (-0400) Subject: coco2cart: bug: sdc driver still not returning no of bytes read/writen X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=51499998f4b6f0462a6e955d058ad19fcd38ad2d;p=FUZIX.git coco2cart: bug: sdc driver still not returning no of bytes read/writen With this fix it boots again on the CoCo2 w/ SDC --- diff --git a/Kernel/platform-coco2cart/devsdc.c b/Kernel/platform-coco2cart/devsdc.c index dbfe2e17..ee8cf44b 100644 --- a/Kernel/platform-coco2cart/devsdc.c +++ b/Kernel/platform-coco2cart/devsdc.c @@ -58,7 +58,7 @@ typedef void (*sdc_transfer_function_t)( unsigned char *addr); /* blkdev method: transfer sectors */ -static uint8_t sdc_transfer(uint8_t minor, bool is_read, uint8_t rawflag) +static uint16_t sdc_transfer(uint8_t minor, bool is_read, uint8_t rawflag) { uint8_t nb = 0; uint32_t lba; /* holds 32 bit lsn */