diff --git a/fairmq/FairMQStateMachine.h b/fairmq/FairMQStateMachine.h index 6c02bfa3..b27bd03b 100644 --- a/fairmq/FairMQStateMachine.h +++ b/fairmq/FairMQStateMachine.h @@ -357,8 +357,8 @@ struct FairMQFSM_ : public msmf::state_machine_def void operator()(EVT const&, FSM& fsm, SourceState&, TargetState&) { LOG(STATE) << "Entering ERROR state"; - fsm.fState = ERROR; - fsm.CallStateChangeCallbacks(ERROR); + fsm.fState = Error; + fsm.CallStateChangeCallbacks(Error); } }; @@ -460,7 +460,7 @@ struct FairMQFSM_ : public msmf::state_machine_def enum State { OK, - ERROR, + Error, IDLE, INITIALIZING_DEVICE, DEVICE_READY, @@ -479,8 +479,8 @@ struct FairMQFSM_ : public msmf::state_machine_def { case OK: return "OK"; - case ERROR: - return "ERROR"; + case Error: + return "Error"; case IDLE: return "IDLE"; case INITIALIZING_DEVICE: diff --git a/fairmq/PluginServices.cxx b/fairmq/PluginServices.cxx index 1df410c1..fc77942a 100644 --- a/fairmq/PluginServices.cxx +++ b/fairmq/PluginServices.cxx @@ -12,7 +12,7 @@ using namespace fair::mq; const std::unordered_map PluginServices::fkDeviceStateStrMap = { {"OK", DeviceState::Ok}, - {"ERROR", DeviceState::Error}, + {"Error", DeviceState::Error}, {"IDLE", DeviceState::Idle}, {"INITIALIZING DEVICE", DeviceState::InitializingDevice}, {"DEVICE READY", DeviceState::DeviceReady}, @@ -26,7 +26,7 @@ const std::unordered_map PluginService }; const std::unordered_map> PluginServices::fkStrDeviceStateMap = { {DeviceState::Ok, "OK"}, - {DeviceState::Error, "ERROR"}, + {DeviceState::Error, "Error"}, {DeviceState::Idle, "IDLE"}, {DeviceState::InitializingDevice, "INITIALIZING DEVICE"}, {DeviceState::DeviceReady, "DEVICE READY"}, @@ -62,7 +62,7 @@ const std::unordered_map> PluginServices::fkDeviceStateMap = { {FairMQDevice::OK, DeviceState::Ok}, - {FairMQDevice::ERROR, DeviceState::Error}, + {FairMQDevice::Error, DeviceState::Error}, {FairMQDevice::IDLE, DeviceState::Idle}, {FairMQDevice::INITIALIZING_DEVICE, DeviceState::InitializingDevice}, {FairMQDevice::DEVICE_READY, DeviceState::DeviceReady},