form improvements
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
2021-09-07 16:14:54 +02:00
parent f7c6f16777
commit e837532b22
2 changed files with 9 additions and 9 deletions

View File

@ -54,13 +54,13 @@ ReturnValue_t GPSHyperionHandler::buildCommandFromCommand(
size_t commandDataLen) {
switch(deviceCommand) {
case(GpsHyperion::TRIGGER_RESET_PIN): {
if(resetPinTrigger != nullptr) {
if(resetCallback != nullptr) {
PoolReadGuard pg(&gpsSet);
// Set HK entries invalid
gpsSet.setValidity(false, true);
// The user needs to implement this. Don't touch states for now, the device should
// quickly reboot and send valid strings again.
return resetPinTrigger(resetPinTriggerArgs);
return resetCallback(resetCallbackArgs);
}
return DeviceHandlerIF::COMMAND_NOT_IMPLEMENTED;
}
@ -180,10 +180,10 @@ void GPSHyperionHandler::modeChanged() {
internalState = InternalStates::NONE;
}
void GPSHyperionHandler::setResetPinTriggerFunction(ReturnValue_t (*function)(void *args),
void GPSHyperionHandler::setResetPinTriggerFunction(gpioResetFunction_t resetCallback,
void *args) {
resetPinTrigger = function;
resetPinTriggerArgs = args;
this->resetCallback = resetCallback;
resetCallbackArgs = args;
}
void GPSHyperionHandler::debugInterface(uint8_t positionTracker, object_id_t objectId,