removed fs errors from exports and filetransfer, saves 260 bytes
This commit is contained in:
parent
ee9c41bc82
commit
77dd1c4b56
|
@ -105,3 +105,7 @@ void PIOINT3_IRQHandler(void) {
|
|||
}
|
||||
}
|
||||
|
||||
void notimplemented(void)
|
||||
{
|
||||
while(1);
|
||||
}
|
||||
|
|
|
@ -213,6 +213,7 @@ const char* IntToStr(int num, unsigned int mxlen, char flag);
|
|||
#define WFI delayms(SYSTICKSPEED)
|
||||
#endif
|
||||
|
||||
void notimplemented(void);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue