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:
Stefan `Sec` Zehl 2011-08-21 18:45:23 +02:00
parent 0cc052a12a
commit af598b3f3e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ void msc_menu(void){
lcdPrintln("MSC Enabled."); lcdPrintln("MSC Enabled.");
lcdRefresh(); lcdRefresh();
usbMSCInit(); usbMSCInit();
while(!getInputRaw())delayms_queue(10); while(!getInputRaw())delayms(10);
DoString(0,16,"MSC Disabled."); DoString(0,16,"MSC Disabled.");
usbMSCOff(); usbMSCOff();
fsReInit(); fsReInit();