auto-sync

This commit is contained in:
rusEfi 2016-02-04 13:01:47 -05:00
parent 132f77cb38
commit 4db9273c29
3 changed files with 4 additions and 8 deletions

View File

@ -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; (void) arg;
chRegSetThreadName("tunerstudio thread"); chRegSetThreadName("tunerstudio thread");
@ -532,10 +532,6 @@ static msg_t tsThreadEntryPoint(void *arg) {
#endif #endif
runBinaryProtocolLoop(&tsChannel, false); runBinaryProtocolLoop(&tsChannel, false);
#if defined __GNUC__
return 0;
#endif
} }
void syncTunerStudioCopy(void) { void syncTunerStudioCopy(void) {
@ -774,7 +770,7 @@ void startTunerStudioConnectivity(void) {
tsChannel.channel = getTsSerialDevice(); tsChannel.channel = getTsSerialDevice();
chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, tsThreadEntryPoint, NULL); chThdCreateStatic(tsThreadStack, sizeof(tsThreadStack), NORMALPRIO, (tfunc_t)tsThreadEntryPoint, NULL);
} }
#endif #endif

View File

@ -155,7 +155,7 @@ static THD_FUNCTION(waThread, arg) {
(void)arg; (void)arg;
chRegSetThreadName("Wave Analyzer"); chRegSetThreadName("Wave Analyzer");
#if EFI_ENGINE_SNIFFER #if EFI_ENGINE_SNIFFER
while (TRUE) { while (true) {
chThdSleepSeconds(CHART_RESET_DELAY); chThdSleepSeconds(CHART_RESET_DELAY);
waveChart.publishIfFull(); waveChart.publishIfFull();

View File

@ -10,10 +10,10 @@
#include <time.h> #include <time.h>
#include "main.h" #include "main.h"
#include "rfiutil.h" #include "rfiutil.h"
#include "chrtclib.h"
#include "rtc_helper.h" #include "rtc_helper.h"
#if EFI_RTC || defined(__DOXYGEN__) #if EFI_RTC || defined(__DOXYGEN__)
#include "chrtclib.h"
static LoggingWithStorage logger("RTC"); static LoggingWithStorage logger("RTC");
#endif /* EFI_RTC */ #endif /* EFI_RTC */