Browse Source

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

ikari 12 years ago
parent
commit
40a4979c32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sdnative.c

+ 1 - 1
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;
   }