diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-27 19:13:15 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-27 19:15:40 -0400 |
commit | 260f999b87a2a5f76d6a9165d5d92cc017d469df (patch) | |
tree | b0e7a79f830a6a62c99b7313ebe8c9db8f72a9ce /src | |
parent | 7d95a00458d74d32e64690674ddceb377eccb1da (diff) | |
download | kutter-260f999b87a2a5f76d6a9165d5d92cc017d469df.tar.gz kutter-260f999b87a2a5f76d6a9165d5d92cc017d469df.tar.xz kutter-260f999b87a2a5f76d6a9165d5d92cc017d469df.zip |
stepper: Remove unused SF_LAST_RESET flag
Tracking of the last reset is no longer needed after commit 8f76e53c.
Remove the code tracking that status and remove the flag definition.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/stepper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stepper.c b/src/stepper.c index 8c822d66..e4a12693 100644 --- a/src/stepper.c +++ b/src/stepper.c @@ -54,7 +54,7 @@ enum { POSITION_BIAS=0x40000000 }; enum { SF_LAST_DIR=1<<0, SF_NEXT_DIR=1<<1, SF_INVERT_STEP=1<<2, SF_HAVE_ADD=1<<3, - SF_LAST_RESET=1<<4, SF_NEED_RESET=1<<5 + SF_NEED_RESET=1<<4 }; // Setup a stepper for the next move in its queue @@ -219,7 +219,6 @@ command_queue_step(uint32_t *args) flags ^= SF_LAST_DIR; m->flags |= MF_DIR; } - flags &= ~SF_LAST_RESET; if (s->count) { s->flags = flags; move_queue_push(&m->node, &s->mq); @@ -258,7 +257,7 @@ command_reset_step_clock(uint32_t *args) if (s->count) shutdown("Can't reset time when stepper active"); s->next_step_time = waketime; - s->flags = (s->flags & ~SF_NEED_RESET) | SF_LAST_RESET; + s->flags &= ~SF_NEED_RESET; irq_enable(); } DECL_COMMAND(command_reset_step_clock, "reset_step_clock oid=%c clock=%u"); |