We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770378b commit f904f95Copy full SHA for f904f95
examples/Braccio_Learn_and_Repeat/Braccio_Learn_and_Repeat.ino
@@ -175,20 +175,11 @@ void loop()
175
if ((now - prev) >= 100)
176
{
177
prev = now;
178
-
179
- if (state == State::RECORD)
180
- {
181
- state = handle_RECORD();
182
- }
183
184
- if (state == State::REPLAY)
185
186
- state = handle_REPLAY();
187
188
189
- if (state == State::ZERO_POSITION)
+ switch (state)
190
191
- state = handle_ZERO_POSITION();
+ case State::RECORD: state = handle_RECORD(); break;
+ case State::REPLAY: state = handle_REPLAY(); break;
+ case State::ZERO_POSITION: state = handle_ZERO_POSITION(); break;
192
}
193
194
0 commit comments