overworked cardreader for folder support; not finished yet.

This commit is contained in:
Bernhard Kubicek
2011-11-19 13:13:34 +01:00
parent 1e5e141ac9
commit 70abca195a
5 changed files with 154 additions and 474 deletions

View File

@ -176,6 +176,7 @@ static unsigned long stoptime=0;
//=============================ROUTINES=============================
//===========================================================================
void get_arc_coordinates();
extern "C"{
extern unsigned int __bss_end;
@ -588,7 +589,7 @@ inline void process_commands()
starpos = (strchr(strchr_pointer + 4,'*'));
if(starpos!=NULL)
*(starpos-1)='\0';
card.selectFile(strchr_pointer + 4);
card.openFile(strchr_pointer + 4,true);
break;
case 24: //M24 - Start SD print
card.startFileprint();
@ -613,7 +614,7 @@ inline void process_commands()
strchr_pointer = strchr(npos,' ') + 1;
*(starpos-1) = '\0';
}
card.startFilewrite(strchr_pointer+4);
card.openFile(strchr_pointer+4,false);
break;
case 29: //M29 - Stop SD write