From 4db9273c296a881802e18380ec7053caa0b0cf3b Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 4 Feb 2016 13:01:47 -0500 Subject: [PATCH] auto-sync --- firmware/console/binary/tunerstudio.cpp | 8 ++------ firmware/development/wave_analyzer.cpp | 2 +- firmware/hw_layer/rtc_helper.cpp | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 46ae335b0d..e79aaafd8b 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -523,7 +523,7 @@ void runBinaryProtocolLoop(ts_channel_s *tsChannel, bool isConsoleRedirect) { } } -static msg_t tsThreadEntryPoint(void *arg) { +static THD_FUNCTION(tsThreadEntryPoint, arg) { (void) arg; chRegSetThreadName("tunerstudio thread"); @@ -532,10 +532,6 @@ static msg_t tsThreadEntryPoint(void *arg) { #endif runBinaryProtocolLoop(&tsChannel, false); - -#if defined __GNUC__ - return 0; -#endif } void syncTunerStudioCopy(void) { @@ -774,7 +770,7 @@ void startTunerStudioConnectivity(void) { tsChannel.channel = getTsSerialDevice(); - chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, tsThreadEntryPoint, NULL); + chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, (tfunc_t)tsThreadEntryPoint, NULL); } #endif diff --git a/firmware/development/wave_analyzer.cpp b/firmware/development/wave_analyzer.cpp index cf087c0c9e..5bdb79e2e1 100644 --- a/firmware/development/wave_analyzer.cpp +++ b/firmware/development/wave_analyzer.cpp @@ -155,7 +155,7 @@ static THD_FUNCTION(waThread, arg) { (void)arg; chRegSetThreadName("Wave Analyzer"); #if EFI_ENGINE_SNIFFER - while (TRUE) { + while (true) { chThdSleepSeconds(CHART_RESET_DELAY); waveChart.publishIfFull(); diff --git a/firmware/hw_layer/rtc_helper.cpp b/firmware/hw_layer/rtc_helper.cpp index 7320d7eb1a..ff72426293 100644 --- a/firmware/hw_layer/rtc_helper.cpp +++ b/firmware/hw_layer/rtc_helper.cpp @@ -10,10 +10,10 @@ #include #include "main.h" #include "rfiutil.h" -#include "chrtclib.h" #include "rtc_helper.h" #if EFI_RTC || defined(__DOXYGEN__) +#include "chrtclib.h" static LoggingWithStorage logger("RTC"); #endif /* EFI_RTC */