Implement Idler moves via registers

pull/201/head
D.R.racer 2022-09-08 11:37:19 +02:00 committed by DRracer
parent 48d5bbc19e
commit 210bd99eaa
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ static const RegisterRec registers[] /*PROGMEM*/ = {
// 0x1c Set/Get Idler slot RW
RegisterRec(
[]() -> uint16_t { return mi::idler.Slot(); },
// [](uint16_t d) { mi::idler.MoveToSlot(d); }, // @@TODO can be theoretically done as well
[](uint16_t d) { d >= config::toolCount ? mi::idler.Disengage() : mi::idler.Engage(d); },
1),
};