@@ -8,7 +8,7 @@ FIND_PACKAGE(ChibiOS COMPONENTS nil hal pal serial REQUIRED)
#FIND_PACKAGE(ChibiOS 16 COMPONENTS nil hal pal serial REQUIRED)
INCLUDE_DIRECTORIES(
- ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
${ChibiOS_INCLUDE_DIRS}
)
@@ -244,7 +244,6 @@ void initAll(void)
int main(void)
{
initAll();
-
for (;;)
char c = 0;
@@ -253,7 +252,7 @@ int main(void)
switch (c)
case 's':
- scanf("%lld", &t);
+ scanf("%d", &t);
setTime(t);
printf("Current time changed: %d - %s\r", t, ctime(&t));
break;