Skip to content

Commit

Permalink
motorRecord.cc: Post ueip if reset to false when encoder missing
Browse files Browse the repository at this point in the history
commit 24a53e6,
    "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.
  • Loading branch information
tboegi committed Oct 22, 2024
1 parent f1159c6 commit a4a6dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motorApp/MotorSrc/motorRecord.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit a4a6dbd

Please sign in to comment.