diff --git a/radio/src/simpgmspace.cpp b/radio/src/simpgmspace.cpp index a527660ff..b8ef7beff 100644 --- a/radio/src/simpgmspace.cpp +++ b/radio/src/simpgmspace.cpp @@ -39,6 +39,9 @@ #include #include #include +#if defined(RTCLOCK) + #include +#endif #if defined WIN32 || !defined __GNUC__ #include @@ -352,7 +355,10 @@ void StartMainThread(bool tests) #endif g_tmr10ms = 0; - +#if defined(RTCLOCK) + g_rtcTime = time(0); +#endif + main_thread_running = (tests ? 1 : 2); pthread_create(&main_thread_pid, NULL, &main_thread, NULL); }