If no filesystem, fail configstuff quickly
This commit is contained in:
parent
cb5ebc57d8
commit
3d701fda1b
|
@ -30,6 +30,9 @@ int lcdInitConfig(){
|
||||||
lcdPrint("open:");
|
lcdPrint("open:");
|
||||||
lcdPrintln(f_get_rc_string(res));
|
lcdPrintln(f_get_rc_string(res));
|
||||||
if(res){
|
if(res){
|
||||||
|
if(res==FR_NO_FILESYSTEM)
|
||||||
|
return 1;
|
||||||
|
|
||||||
lcdPrintln("new r0ket.cfg...");
|
lcdPrintln("new r0ket.cfg...");
|
||||||
|
|
||||||
res=f_open(&file, "r0ket.cfg", FA_OPEN_ALWAYS|FA_WRITE);
|
res=f_open(&file, "r0ket.cfg", FA_OPEN_ALWAYS|FA_WRITE);
|
||||||
|
|
Loading…
Reference in New Issue