Tweak G60/G61 slots
This commit is contained in:
parent
5b12627e14
commit
3c9464eea4
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ void GcodeSuite::G60() {
|
||||||
}
|
}
|
||||||
|
|
||||||
stored_position[slot] = current_position;
|
stored_position[slot] = current_position;
|
||||||
SBI(saved_slots[slot >> 3], slot & 0b00000111);
|
SBI(saved_slots[slot >> 3], slot & 0x07);
|
||||||
|
|
||||||
#if ENABLED(SAVED_POSITIONS_DEBUG)
|
#if ENABLED(SAVED_POSITIONS_DEBUG)
|
||||||
const xyze_pos_t &pos = stored_position[slot];
|
const xyze_pos_t &pos = stored_position[slot];
|
||||||
|
|
|
@ -48,7 +48,7 @@ void GcodeSuite::G61(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// No saved position? No axes being restored?
|
// No saved position? No axes being restored?
|
||||||
if (!TEST(saved_slots[slot >> 3], slot & 0b00000111) || !parser.seen("XYZ")) return;
|
if (!TEST(saved_slots[slot >> 3], slot & 0x07) || !parser.seen("XYZ")) return;
|
||||||
|
|
||||||
// Apply any given feedrate over 0.0
|
// Apply any given feedrate over 0.0
|
||||||
const float fr = parser.linearval('F');
|
const float fr = parser.linearval('F');
|
||||||
|
|
Reference in a new issue