Fix G60/G61 slots > 8 and compile error (#16715)

This commit is contained in:
chgi
2020-01-30 18:18:45 +09:00
committed by GitHub
parent e6a675e6ec
commit 99b6a132bc
4 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ void GcodeSuite::G60() {
}
stored_position[slot] = current_position;
SBI(saved_slots, slot);
SBI(saved_slots[slot >> 3], slot & 0b00000111);
#if ENABLED(SAVED_POSITIONS_DEBUG)
const xyze_pos_t &pos = stored_position[slot];