Index: ADuCM360_demo_cn0359/src/applications/main.cpp =================================================================== diff -u -r8d80f35bf88694bd50d769b9bab31db8364a9004 -rb39d7f18a4f5f23a76b7fb484c13bffd225ef466 --- ADuCM360_demo_cn0359/src/applications/main.cpp (.../main.cpp) (revision 8d80f35bf88694bd50d769b9bab31db8364a9004) +++ ADuCM360_demo_cn0359/src/applications/main.cpp (.../main.cpp) (revision b39d7f18a4f5f23a76b7fb484c13bffd225ef466) @@ -42,21 +42,34 @@ #include #include #include + +#ifdef EVAL_BUILD #include #include +#endif // EVAL_BUILD +#include + int main(void) { SystemCoreClockUpdate(); // SystemCoreClock in bss, cleared by _start + // Clear the disk error flag + clear_error_flag(); + initial_devices(); SysTick_Config(SystemCoreClock / CLK_TCK); //system tick 100Hz = 10ms, defined in time.h +#ifdef EVAL_BUILD p_dialog = &SplashDialog; p_dialog->OnCreat(); +#endif // EVAL_BUILD + // Start automated polling / publishing + start_auto_publishing(); + while (true) { message_loop(); }