Skip to content

Commit

Permalink
Fix MK2 selftest after an autohome
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc authored Nov 27, 2021
1 parent 80168bd commit 7609474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parts/components/A4982.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void A4982::OnStepIn(struct avr_irq_t * /*irq*/, uint32_t value)

void A4982::CheckEndstops()
{
if (m_iCurStep<0)
if (m_iCurStep<=0)
{
m_iCurStep = 0;
RaiseIRQ(MIN_OUT,1);
Expand Down

0 comments on commit 7609474

Please sign in to comment.