Fixed crash bug when using without an OLED LCD

This commit is contained in:
Stephen White 2018-07-16 19:40:42 +10:00
parent 9f0e610663
commit 30f1d4747e

View file

@ -411,6 +411,10 @@ void InitialiseLCD()
} }
screenLCD->RefreshScreen(); screenLCD->RefreshScreen();
} }
else
{
screenLCD = 0;
}
} }
//void UpdateUartControls(bool refreshStatusDisplay, bool LED, bool Motor, bool ATN, bool DATA, bool CLOCK, u32 Track, u32 romIndex) //void UpdateUartControls(bool refreshStatusDisplay, bool LED, bool Motor, bool ATN, bool DATA, bool CLOCK, u32 Track, u32 romIndex)
@ -1304,6 +1308,7 @@ extern "C"
IEC_Bus::Initialise(); IEC_Bus::Initialise();
if (screenLCD)
screenLCD->ClearInit(0); screenLCD->ClearInit(0);
#ifdef HAS_MULTICORE #ifdef HAS_MULTICORE