We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847391c commit 30a885aCopy full SHA for 30a885a
Marlin/src/feature/repeat.cpp
@@ -42,7 +42,7 @@ void Repeat::add_marker(const uint32_t sdpos, const uint16_t count) {
42
SERIAL_ECHO_MSG("!Too many markers.");
43
else {
44
marker[index].sdpos = sdpos;
45
- marker[index].counter = count ?: -1;
+ marker[index].counter = count ? count - 1 : -1;
46
index++;
47
DEBUG_ECHOLNPGM("Add Marker ", index, " at ", sdpos, " (", count, ")");
48
}
0 commit comments