Skip to content

Commit

Permalink
Merge pull request #170 from OpenEtherCATsociety/fix/reset_esc_repeat…
Browse files Browse the repository at this point in the history
…_ack

Sync local SM PDIreg with ESC PDIreg at Mbx start
  • Loading branch information
nakarlsson authored Mar 20, 2024
2 parents 05bf6c6 + d04bed4 commit 56124c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soes/esc.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ uint8_t ESC_startmbx (uint8_t state)
else
{
ESCvar.toggle = ESCvar.SM[1].ECrep; //sync repeat request toggle state
ESCvar.SM[1].PDIrep = ESCvar.toggle & 0x1U;
ESC_SMwritepdi (1);
ESCvar.MBXrun = 1;
}
return state;
Expand Down Expand Up @@ -367,6 +369,8 @@ uint8_t ESC_startmbxboot (uint8_t state)
else
{
ESCvar.toggle = ESCvar.SM[1].ECrep; //sync repeat request toggle state
ESCvar.SM[1].PDIrep = ESCvar.toggle & 0x1U;
ESC_SMwritepdi (1);
ESCvar.MBXrun = 1;
}
return state;
Expand Down

0 comments on commit 56124c2

Please sign in to comment.