diff --git a/src/SimulatedE2PS.cpp b/src/SimulatedE2PS.cpp index 2dc98db46e4415398904517af0c8c2f8c026eaa2..ce2f4ed74db03659b66d5190637b9a29e684fd92 100644 --- a/src/SimulatedE2PS.cpp +++ b/src/SimulatedE2PS.cpp @@ -498,7 +498,7 @@ void SimulatedE2PS::fault() /* clang-format on */ // Add your own code - if (get_state() == Tango::ON) return; // command is idempotent + if (get_state() == Tango::FAULT) return; // command is idempotent _current_read = 0.0; _current = 0.0; _voltage = 0.0;