new member to store last step
This commit is contained in:
parent
822a908353
commit
dbb394f761
@ -72,6 +72,8 @@ DeviceHandlerBase::~DeviceHandlerBase() {
|
|||||||
|
|
||||||
ReturnValue_t DeviceHandlerBase::performOperation(uint8_t counter) {
|
ReturnValue_t DeviceHandlerBase::performOperation(uint8_t counter) {
|
||||||
this->pstStep = counter;
|
this->pstStep = counter;
|
||||||
|
this->lastStep = this->pstStep;
|
||||||
|
|
||||||
if (getComAction() == CommunicationAction::NOTHING) {
|
if (getComAction() == CommunicationAction::NOTHING) {
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
@ -86,10 +88,13 @@ ReturnValue_t DeviceHandlerBase::performOperation(uint8_t counter) {
|
|||||||
hkSwitcher.performOperation();
|
hkSwitcher.performOperation();
|
||||||
hkManager.performHkOperation();
|
hkManager.performHkOperation();
|
||||||
performOperationHook();
|
performOperationHook();
|
||||||
|
return RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode == MODE_OFF) {
|
if (mode == MODE_OFF) {
|
||||||
return RETURN_OK;
|
return RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (getComAction()) {
|
switch (getComAction()) {
|
||||||
case CommunicationAction::SEND_WRITE:
|
case CommunicationAction::SEND_WRITE:
|
||||||
if (cookieInfo.state == COOKIE_UNUSED) {
|
if (cookieInfo.state == COOKIE_UNUSED) {
|
||||||
|
@ -555,6 +555,7 @@ protected:
|
|||||||
|
|
||||||
/** This is the counter value from performOperation(). */
|
/** This is the counter value from performOperation(). */
|
||||||
uint8_t pstStep = 0;
|
uint8_t pstStep = 0;
|
||||||
|
uint8_t lastStep = 0;
|
||||||
uint32_t pstIntervalMs = 0;
|
uint32_t pstIntervalMs = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user