new MGM polling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
@ -15,7 +15,7 @@ GyrL3gCustomHandler::GyrL3gCustomHandler(object_id_t objectId, object_id_t devic
|
||||
GyrL3gCustomHandler::~GyrL3gCustomHandler() = default;
|
||||
|
||||
void GyrL3gCustomHandler::doStartUp() {
|
||||
if (internalState == InternalState::NONE) {
|
||||
if (internalState != InternalState::STARTUP) {
|
||||
internalState = InternalState::STARTUP;
|
||||
updatePeriodicReply(true, l3gd20h::REPLY);
|
||||
commandExecuted = false;
|
||||
@ -28,6 +28,8 @@ void GyrL3gCustomHandler::doStartUp() {
|
||||
} else {
|
||||
setMode(_MODE_TO_ON);
|
||||
}
|
||||
internalState == InternalState::NONE;
|
||||
commandExecuted = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -37,7 +39,7 @@ void GyrL3gCustomHandler::doShutDown() {
|
||||
internalState = InternalState::SHUTDOWN;
|
||||
commandExecuted = false;
|
||||
}
|
||||
if (commandExecuted) {
|
||||
if (internalState == InternalState::SHUTDOWN and commandExecuted) {
|
||||
internalState = InternalState::NONE;
|
||||
updatePeriodicReply(false, l3gd20h::REPLY);
|
||||
commandExecuted = false;
|
||||
|
Reference in New Issue
Block a user