fix initializer which is not compatible with vxWorks 5

This commit is contained in:
2021-06-14 13:47:27 +02:00
parent 2b15ae7ac0
commit 7e42f6fddf
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ StreamCore* StreamCore::first = NULL;
StreamCore::
StreamCore() : StreamBusInterface::Client(),
next(), streamname(), flags(None), inTerminatorDefined(), outTerminatorDefined(),
activeCommand(end), unparsedInput()
activeCommand(end), previousResult(Success), numberOfErrors(0), unparsedInput()
{
businterface = NULL;
// add myself to list of streams

View File

@ -177,9 +177,9 @@ protected:
StreamBuffer fieldAddress;
// Keep track of errors to reduce logging frequencies
ProtocolResult previousResult = Success;
ProtocolResult previousResult;
time_t lastErrorTime;
int numberOfErrors = 0;
int numberOfErrors;
StreamIoStatus lastInputStatus;
bool unparsedInput;