void osdEraseFlash(void *ptr) { UNUSED(ptr); max7456ClearScreen(); max7456Write(5, 3, "ERASING FLASH..."); max7456RefreshAll(); flashfsEraseCompletely(); while (!flashfsIsReady()) { delay(100); } max7456ClearScreen(); max7456RefreshAll(); }
static long cmsx_EraseFlash(displayPort_t *pDisplay, const void *ptr) { UNUSED(ptr); displayClear(pDisplay); displayWrite(pDisplay, 5, 3, "ERASING FLASH..."); displayResync(pDisplay); // Was max7456RefreshAll(); Why at this timing? flashfsEraseCompletely(); while (!flashfsIsReady()) { delay(100); } displayClear(pDisplay); displayResync(pDisplay); // Was max7456RefreshAll(); wedges during heavy SPI? return 0; }