From 40a4979c3233d8981158bc48f599620a32656ca9 Mon Sep 17 00:00:00 2001 From: ikari Date: Wed, 29 Feb 2012 21:58:35 +0100 Subject: [PATCH] firmware/SD: only complain about invalid sector buffer when offloading is disabled --- src/sdnative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdnative.c b/src/sdnative.c index 4913826..b032a60 100644 --- a/src/sdnative.c +++ b/src/sdnative.c @@ -362,7 +362,7 @@ int send_command_fast(uint8_t* cmd, uint8_t* rsp, uint8_t* buf){ default: rsplen = 6; } - if(dat && (buf==NULL)) { + if(dat && (buf==NULL) && !sd_offload) { printf("send_command_fast error: buf is null but data transfer expected.\n"); return 0; }