diff --git a/urpc/builder/debugger/debugger.py b/urpc/builder/debugger/debugger.py index 2ce5e78..e12457e 100644 --- a/urpc/builder/debugger/debugger.py +++ b/urpc/builder/debugger/debugger.py @@ -66,15 +66,17 @@ def build_cmake_lists(self) -> str: else() # Detect QT version find_package(Qt4 QUIET) - find_package(Qt5Widgets QUIET) if(${{Qt4_FOUND}}) message("Qt4 will be used") set (USE_QT5 FALSE) - elseif(${{Qt5Widgets_FOUND}}) - message("Qt5 will be used") - set (USE_QT5 TRUE) else() - message(FATAL_ERROR "No Qt4/Qt5 found") + find_package(Qt5Widgets QUIET) + if(${{Qt5Widgets_FOUND}}) + message("Qt5 will be used") + set (USE_QT5 TRUE) + else() + message(FATAL_ERROR "No Qt4/Qt5 found") + endif() endif() endif() diff --git a/urpc/builder/firmware/K1921BK01T_UART/resources/firmware/src/main.c b/urpc/builder/firmware/K1921BK01T_UART/resources/firmware/src/main.c index 6add8f7..a10bab2 100644 --- a/urpc/builder/firmware/K1921BK01T_UART/resources/firmware/src/main.c +++ b/urpc/builder/firmware/K1921BK01T_UART/resources/firmware/src/main.c @@ -16,16 +16,16 @@ #include "niietcm4_rcc.h" #include "tty.h" +// FreeRTOS files +#include "FreeRTOS.h" +#include "task.h" + #ifdef DEBUG #include // For printf(...) #define LIFEBUOY_PORT NT_GPIOF #define LIFEBUOY_PIN GPIO_Pin_7 - // FreeRTOS files - #include "FreeRTOS.h" - #include "task.h" - static inline void Lifebuoy(void); #endif // DEBUG