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)
|
#define WFI delayms(SYSTICKSPEED)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void notimplemented(void);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#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);
|
res = f_open(&file, (const char*)metadata, FA_OPEN_ALWAYS|FA_WRITE);
|
||||||
|
|
||||||
//lcdPrintln("file opened"); lcdRefresh();
|
//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 )
|
if( res )
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@ ECIES_encyptkeygen
|
||||||
bitstr_parse_export
|
bitstr_parse_export
|
||||||
#fs
|
#fs
|
||||||
f_close
|
f_close
|
||||||
f_get_rc_string
|
#f_get_rc_string
|
||||||
|
notimplemented
|
||||||
f_lseek
|
f_lseek
|
||||||
f_open
|
f_open
|
||||||
f_read
|
f_read
|
||||||
|
@ -126,4 +127,3 @@ timer32Callback0
|
||||||
lcdRead
|
lcdRead
|
||||||
lcdInit
|
lcdInit
|
||||||
lcdSetCrsr
|
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);
|
res = f_open(&file, (const char*)metadata, FA_OPEN_ALWAYS|FA_WRITE);
|
||||||
|
|
||||||
//lcdPrintln("file opened"); lcdRefresh();
|
//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 )
|
if( res )
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue