Issue 109 fixed
This commit is contained in:
+12
-4
@@ -3099,10 +3099,6 @@ uint16_t stack_free()
|
|||||||
|
|
||||||
inline void open9xInit(OPEN9X_INIT_ARGS)
|
inline void open9xInit(OPEN9X_INIT_ARGS)
|
||||||
{
|
{
|
||||||
#if defined(PCBARM)
|
|
||||||
sdInit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
eeReadAll();
|
eeReadAll();
|
||||||
|
|
||||||
#if defined(PCBARM)
|
#if defined(PCBARM)
|
||||||
@@ -3113,6 +3109,18 @@ inline void open9xInit(OPEN9X_INIT_ARGS)
|
|||||||
if (g_eeGeneral.backlightMode != e_backlight_mode_off) backlightOn(); // on Tx start turn the light on
|
if (g_eeGeneral.backlightMode != e_backlight_mode_off) backlightOn(); // on Tx start turn the light on
|
||||||
|
|
||||||
if (!UNEXPECTED_SHUTDOWN()) {
|
if (!UNEXPECTED_SHUTDOWN()) {
|
||||||
|
#if defined(PCBARM)
|
||||||
|
lcd_clear();
|
||||||
|
refreshDisplay();
|
||||||
|
sdInit();
|
||||||
|
#elif defined(PCBSTD && defined(VOICE) && !defined(SPLASH)
|
||||||
|
lcd_clear();
|
||||||
|
lcd_putsAtt(20, 28, PSTR("Open9x..."), DBLSIZE);
|
||||||
|
refreshDisplay();
|
||||||
|
tmr10ms_t tgtime = get_tmr10ms() + (2*100); /* 2 seconds */
|
||||||
|
while (tgtime != get_tmr10ms() && !keyDown());
|
||||||
|
#endif
|
||||||
|
|
||||||
doSplash();
|
doSplash();
|
||||||
|
|
||||||
#if !defined(PCBARM)
|
#if !defined(PCBARM)
|
||||||
|
|||||||
@@ -177,6 +177,15 @@ void *main_thread(void *)
|
|||||||
if (main_thread_running == 1) {
|
if (main_thread_running == 1) {
|
||||||
#if defined(SPLASH)
|
#if defined(SPLASH)
|
||||||
doSplash();
|
doSplash();
|
||||||
|
#elif defined(PCBSTD) && defined(VOICE)
|
||||||
|
lcd_clear();
|
||||||
|
lcd_putsAtt(20, 28, PSTR("Open9x..."), DBLSIZE);
|
||||||
|
refreshDisplay();
|
||||||
|
tmr10ms_t tgtime = get_tmr10ms() + (2*100); /* 2 seconds */
|
||||||
|
while (tgtime != get_tmr10ms()/* && !keyDown()*/) {
|
||||||
|
if (!main_thread_running) break;
|
||||||
|
sleep(1/*ms*/);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(PCBARM)
|
#if !defined(PCBARM)
|
||||||
|
|||||||
Reference in New Issue
Block a user