Fix random dataflash corruption in usb mass storage mode.
Problem was that usbmsc does spi from the irq, and the queue() also does spi. And of course spi is non-reentrant. Fix this by disabling the queue here. For now.
This commit is contained in:
parent
0cc052a12a
commit
af598b3f3e
|
@ -24,7 +24,7 @@ void msc_menu(void){
|
|||
lcdPrintln("MSC Enabled.");
|
||||
lcdRefresh();
|
||||
usbMSCInit();
|
||||
while(!getInputRaw())delayms_queue(10);
|
||||
while(!getInputRaw())delayms(10);
|
||||
DoString(0,16,"MSC Disabled.");
|
||||
usbMSCOff();
|
||||
fsReInit();
|
||||
|
|
Loading…
Reference in New Issue