From a4a6dbddf412f7e66bf80131105d27c2bfb34e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Date: Tue, 22 Oct 2024 12:05:44 +0200 Subject: [PATCH] motorRecord.cc: Post ueip if reset to false when encoder missing commit 24a53e660e213ae6a57dc4d6f5648bed895ef85e, "motorRecord: Reset UEIP to No if no encoder is present" Seems to have introduced a typo: When ueip is reset to false, because there is no encoder, then db_post_events(ueip) should be called, not urip. --- motorApp/MotorSrc/motorRecord.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorApp/MotorSrc/motorRecord.cc b/motorApp/MotorSrc/motorRecord.cc index 1760b6dc..ae78a176 100644 --- a/motorApp/MotorSrc/motorRecord.cc +++ b/motorApp/MotorSrc/motorRecord.cc @@ -3664,7 +3664,7 @@ static void process_motor_info(motorRecord * pmr, bool initcall) if ((pmr->ueip == motorUEIP_Yes) && (!(msta.Bits.EA_PRESENT))) { pmr->ueip = motorUEIP_No; - db_post_events(pmr, &pmr->urip, DBE_VAL_LOG); + db_post_events(pmr, &pmr->ueip, DBE_VAL_LOG); } if (pmr->ueip == motorUEIP_Yes) {