Move proc_testRun() out of loop.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 13:35:20 +0000 (13:35 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Aug 2008 13:35:20 +0000 (13:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1717 38d2e660-2303-0410-9eaa-f027e97ec537

app/at91sam7s/at91sam7s.c

index 4b442ec8214067cec9a678df37595b8e9e5512c6..275af6e565faf6246d980d8d198ed674a8af9ac7 100644 (file)
@@ -106,10 +106,10 @@ int main(void)
        timer_setDelay(&leds_timer, ms_to_ticks(100));
        timer_add(&leds_timer);
 
+       ASSERT(proc_testRun() == 0);
        // Main loop
        for(;;)
        {
-               proc_testRun();
                kfile_printf(&ser_fd.fd, "From serial 0: %s\r\n", msg);
        }
        return 0;