diff --git a/PI/pi.cpp b/PI/pi.cpp index c892ba66..491dae66 100644 --- a/PI/pi.cpp +++ b/PI/pi.cpp @@ -764,6 +764,8 @@ namespace Physik_Instrumente { template long Interface::move_to_default() { + this->thread_error.store( NO_ERROR ); // initialize the thread_error state. + for ( const auto &mot : this->motormap ) { for ( const auto &axis : mot.second.axes ) { if ( !std::isnan(axis.second.defpos) ) {