motorRecord.cc: Post ueip if reset to false when encoder missing

commit 24a53e660e,
    "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.
This commit is contained in:
Torsten Bögershausen
2024-10-22 12:05:44 +02:00
parent f1159c66a6
commit a4a6dbddf4
+1 -1
View File
@@ -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)
{