Browse Source

Group the fail case in one negation (PR#2572)

pull/1/head
Scott Lahteine 9 years ago
committed by Richard Wackerbarth
parent
commit
0f5ada8cbd
  1. 3
      Marlin/cardreader.cpp

3
Marlin/cardreader.cpp

@ -481,8 +481,7 @@ void CardReader::write_command(char *buf) {
} }
void CardReader::checkautostart(bool force) { void CardReader::checkautostart(bool force) {
if (!force && (!autostart_stilltocheck || next_autostart_ms < millis())) if (!(force || !autostart_stilltocheck || next_autostart_ms >= millis())) return;
return;
autostart_stilltocheck = false; autostart_stilltocheck = false;

Loading…
Cancel
Save