spelling is important

This commit is contained in:
Andrey 2023-09-09 19:54:57 -04:00
parent b5fd6ea044
commit 247a0a91b5
3 changed files with 4 additions and 4 deletions

View File

@ -515,7 +515,7 @@ static int tsProcessOne(TsChannelBase* tsChannel) {
char command;
if (tsChannel->in_sync) {
/* we are in sync state, packet size should be correct so lets receive full packet and then check if command is supported
* otherwise (if abort reception in middle of packet) it will break syncronization and cause error on next packet */
* otherwise (if abort reception in middle of packet) it will break synchronization and cause error on next packet */
received = tsChannel->readTimeout((uint8_t*)(tsChannel->scratchBuffer), expectedSize, TS_COMMUNICATION_TIMEOUT);
command = tsChannel->scratchBuffer[0];

View File

@ -66,7 +66,7 @@ public:
* As soon as tsProcessOne was able to receive valid packet with valid size and crc
* TsChannel becomes "in sync". That means it will react on any futher errors: it will
* emit packet with error code and switch back to "not in sync" mode.
* This insures that RE will send only one error message after lost of syncronization
* This insures that RE will send only one error message after lost of synchronization
* with TS.
* Also while in "not in sync" state - tsProcessOne will not try to receive whole packet
* by one read. Instead after getting packet size it will try to receive one byte of

View File

@ -12,7 +12,7 @@ extern WarningCodeState unitTestWarningCodeState;
#include "engine_sniffer.h"
extern WaveChart waveChart;
TEST(trigger, testNoStartUpWarningsNoSyncronizationTrigger) {
TEST(trigger, testNoStartUpWarningsNoSynchronizationTrigger) {
EngineTestHelper eth(engine_type_e::TEST_ENGINE);
// one tooth does not need synchronization it just counts tooth
eth.setTriggerType(trigger_type_e::TT_HALF_MOON);
@ -20,7 +20,7 @@ TEST(trigger, testNoStartUpWarningsNoSyncronizationTrigger) {
eth.fireTriggerEvents2(/*count*/10, /*duration*/50);
ASSERT_EQ(1200, round(Sensor::getOrZero(SensorType::Rpm))) << "testNoStartUpWarnings RPM";
ASSERT_EQ( 0, unitTestWarningCodeState.recentWarnings.getCount()) << "warningCounter#testNoStartUpWarningsNoSyncronizationTrigger";
ASSERT_EQ( 0, unitTestWarningCodeState.recentWarnings.getCount()) << "warningCounter#testNoStartUpWarningsNoSynchronizationTrigger";
}
TEST(trigger, testNoStartUpWarnings) {