moved ISP and MSC before fs init
This commit is contained in:
parent
380b22e57f
commit
f800530aa9
|
@ -22,22 +22,6 @@ void main_default(void) {
|
|||
lcdRefresh();
|
||||
lcdClear();
|
||||
|
||||
switch(getInputRaw()){
|
||||
case BTN_ENTER:
|
||||
lcdPrint("ISP active");
|
||||
lcdRefresh();
|
||||
ReinvokeISP();
|
||||
break;
|
||||
case BTN_UP: // Reset config
|
||||
saveConfig();
|
||||
break;
|
||||
case BTN_DOWN:
|
||||
usbMSCInit();
|
||||
while(1);
|
||||
//delayms_power(100);
|
||||
break;
|
||||
};
|
||||
|
||||
readConfig();
|
||||
if(getInputRaw()==BTN_RIGHT){
|
||||
GLOBAL(develmode)=1;
|
||||
|
|
|
@ -53,7 +53,25 @@ int main(void) {
|
|||
lcdFill(0);
|
||||
lcdDisplay();
|
||||
|
||||
switch(getInputRaw()){
|
||||
case BTN_ENTER:
|
||||
lcdPrint("ISP active");
|
||||
lcdRefresh();
|
||||
ReinvokeISP();
|
||||
break;
|
||||
case BTN_DOWN:
|
||||
lcdPrint("MSC active");
|
||||
lcdRefresh();
|
||||
usbMSCInit();
|
||||
while(1);
|
||||
break;
|
||||
};
|
||||
|
||||
fsInit();
|
||||
|
||||
if( getInputRaw() == BTN_UP ){ // Reset config
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
wrapper(); // see module/ subdirectory
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue