forked from epics_driver_modules/motorBase
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user