Compilation fix
This commit is contained in:
@@ -421,8 +421,8 @@ void drawStick(coord_t centrex, int16_t xval, int16_t yval);
|
|||||||
void drawPotsBars();
|
void drawPotsBars();
|
||||||
void doMainScreenGraphics();
|
void doMainScreenGraphics();
|
||||||
|
|
||||||
inline void drawProgressBar(const char * label);
|
void drawProgressBar(const char * label);
|
||||||
inline void updateProgressBar(int num, int den);
|
void updateProgressBar(int num, int den);
|
||||||
void drawSleepBitmap();
|
void drawSleepBitmap();
|
||||||
|
|
||||||
#if !defined(CPUM64)
|
#if !defined(CPUM64)
|
||||||
|
|||||||
@@ -256,8 +256,10 @@ void updateProgressBar(int num, int den)
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CPUARM) || defined(CPU2560)
|
||||||
void drawSleepBitmap()
|
void drawSleepBitmap()
|
||||||
{
|
{
|
||||||
lcdClear();
|
lcdClear();
|
||||||
showMessageBox(STR_SHUTDOWN);
|
showMessageBox(STR_SHUTDOWN);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -2626,11 +2626,8 @@ int main()
|
|||||||
|
|
||||||
#if defined(CPUM2560)
|
#if defined(CPUM2560)
|
||||||
// Time to switch off
|
// Time to switch off
|
||||||
lcdClear();
|
drawSleepBitmap();
|
||||||
showMessageBox(STR_SHUTDOWN);
|
|
||||||
opentxClose();
|
opentxClose();
|
||||||
lcdClear() ;
|
|
||||||
lcdRefresh() ;
|
|
||||||
boardOff(); // Only turn power off if necessary
|
boardOff(); // Only turn power off if necessary
|
||||||
wdt_disable();
|
wdt_disable();
|
||||||
while(1); // never return from main() - there is no code to return back, if any delays occurs in physical power it does dead loop.
|
while(1); // never return from main() - there is no code to return back, if any delays occurs in physical power it does dead loop.
|
||||||
|
|||||||
Reference in New Issue
Block a user