auto-sync

This commit is contained in:
rusEfi 2016-01-09 08:01:27 -05:00
parent a6ccceb92b
commit 743e665d5c
2 changed files with 3 additions and 3 deletions

View File

@ -446,7 +446,7 @@ void runBinaryProtocolLoop(ts_channel_s *tsChannel, bool_t isConsoleRedirect) {
recieved = chnReadTimeout(tsChannel->channel, &secondByte, 1, TS_READ_TIMEOUT);
if (recieved != 1) {
tunerStudioError("ERROR: no second");
tunerStudioError("TS: ERROR: no second byte");
continue;
}
// scheduleMsg(logger, "Got secondByte=%x=[%c]", secondByte, secondByte);

View File

@ -66,12 +66,12 @@ static char pinNameBuffer[16];
static float currentAngleWindowWidth;
/**
* Int/Hold pin is controlled from scheduler callbacks which are set according to current RPM
* Int/Hold pin is controlled from scheduler call-backs which are set according to current RPM
*
* The following state makes sure that we only have SPI communication while not integrating and that we take
* a good ADC reading after integrating.
*
* Once integtation window is over, we wait for the 2nd ADC callback and then initiate SPI communication if needed
* Once integration window is over, we wait for the 2nd ADC callback and then initiate SPI communication if needed
*
* hipOutput should be set to used FAST adc device
*/