removed fs errors from exports and filetransfer, saves 260 bytes

This commit is contained in:
schneider 2011-12-22 03:02:45 +01:00
parent ee9c41bc82
commit 77dd1c4b56
5 changed files with 11 additions and 4 deletions

View File

@ -105,3 +105,7 @@ void PIOINT3_IRQHandler(void) {
}
}
void notimplemented(void)
{
while(1);
}

View File

@ -213,6 +213,7 @@ const char* IntToStr(int num, unsigned int mxlen, char flag);
#define WFI delayms(SYSTICKSPEED)
#endif
void notimplemented(void);
#endif

View File

@ -90,7 +90,8 @@ int filetransfer_receive(uint8_t *mac, uint32_t const k[4])
res = f_open(&file, (const char*)metadata, FA_OPEN_ALWAYS|FA_WRITE);
//lcdPrintln("file opened"); lcdRefresh();
if( res ) {lcdPrintln("res"); lcdPrint(f_get_rc_string(res)); lcdRefresh(); while(1);}
//if( res ) {lcdPrintln("res"); lcdPrint(f_get_rc_string(res)); lcdRefresh(); while(1);}
if( res ){ lcdPrintln("file error"); lcdRefresh(); while(1);}
if( res )
return res;

View File

@ -38,7 +38,8 @@ ECIES_encyptkeygen
bitstr_parse_export
#fs
f_close
f_get_rc_string
#f_get_rc_string
notimplemented
f_lseek
f_open
f_read
@ -126,4 +127,3 @@ timer32Callback0
lcdRead
lcdInit
lcdSetCrsr

View File

@ -251,7 +251,8 @@ int filetransfer_receive(uint8_t *mac, uint32_t const k[4])
res = f_open(&file, (const char*)metadata, FA_OPEN_ALWAYS|FA_WRITE);
//lcdPrintln("file opened"); lcdRefresh();
if( res ) {lcdPrintln("res"); lcdPrint(f_get_rc_string(res)); lcdRefresh(); while(1);}
//if( res ) {lcdPrintln("res"); lcdPrint(f_get_rc_string(res)); lcdRefresh(); while(1);}
if( res ){ lcdPrintln("file error"); lcdRefresh(); while(1);}
if( res )
return res;