Fix errors in the KeyboardHost demo which prevented correct compilation.
[pub/USBasp.git] / Demos / OTG / TestApp / TestApp.c
index e72c191..8c8a23f 100644 (file)
 /* Scheduler Task List */\r
 TASK_LIST\r
 {\r
-       { Task: TestApp_CheckJoystick, TaskStatus: TASK_RUN  },\r
-       { Task: TestApp_CheckHWB     , TaskStatus: TASK_RUN  },\r
-       { Task: TestApp_CheckTemp    , TaskStatus: TASK_RUN  },\r
-       { Task: USB_USBTask          , TaskStatus: TASK_RUN  },\r
+       { .Task = TestApp_CheckJoystick, .TaskStatus = TASK_RUN  },\r
+       { .Task = TestApp_CheckHWB     , .TaskStatus = TASK_RUN  },\r
+       { .Task = TestApp_CheckTemp    , .TaskStatus = TASK_RUN  },\r
+       { .Task = USB_USBTask          , .TaskStatus = TASK_RUN  },\r
 };\r
 \r
 /** Main program entry point. This routine configures the hardware required by the application, then\r
@@ -130,7 +130,7 @@ TASK(TestApp_CheckTemp)
        if (Scheduler_HasDelayElapsed(10000, &DelayCounter))\r
        {\r
                printf_P(PSTR("Current temperature: %d Degrees Celcius\r\n\r\n"),\r
-                        (int)Temperature_GetTemperature());\r
+                        (int8_t)Temperature_GetTemperature());\r
 \r
                /* Reset the delay counter, ready to count another 10000 tick interval */\r
                Scheduler_ResetDelay(&DelayCounter);\r