Преглед изворни кода

Removed un-intended changes not related to STM32G0.

Jonathan Hamberg пре 5 година
родитељ
комит
efc45c2520
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 1
      stm32-chibios/CMakeLists.txt
  2. 1 2
      stm32-newlib/main.c

+ 1 - 1
stm32-chibios/CMakeLists.txt

@@ -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}
 )
 

+ 1 - 2
stm32-newlib/main.c

@@ -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;