various bugfixes and improvements

This commit is contained in:
2021-07-29 18:09:54 +02:00
parent dba620baf2
commit 34d3479e81
4 changed files with 88 additions and 33 deletions

View File

@ -19,6 +19,7 @@ public:
CANCEL_RQ,
RESTART_RQ,
TIMEOUT,
HUNG_UP,
FAULT
};
@ -32,7 +33,7 @@ private:
bool obswRunning = false;
bool watchdogRunning = false;
bool printTimeoutLatch = false;
bool printNotRunningLatch = false;
std::array<uint8_t, 64> buf;
States state = States::NOT_STARTED;
@ -41,7 +42,7 @@ private:
LoopResult parseCommandByte(ssize_t readLen);
int performRunningOperation();
int performTimeoutOperation();
int performNotRunningOperation(LoopResult type);
int performSuspendOperation();
};