firmware/SD: only complain about invalid sector buffer when offloading is disabled

This commit is contained in:
ikari
2012-02-29 21:58:35 +01:00
parent d00b072e5f
commit 40a4979c32

View File

@@ -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;
}