From cc1b40342572ab2e56399eb0d31f283d1a464335 Mon Sep 17 00:00:00 2001 From: David Hale Date: Fri, 31 Jul 2026 13:13:36 -0700 Subject: [PATCH] fix bug in Physik_Instrumente::Interface::move_to_default error was un-initialized --- PI/pi.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) ) {