Browse Source

Restore test

PR#2572 Changed this because of faulty Boolean Logic

NOT(A OR (NOT B) OR (NOT C)) !=

(NOT A) AND ((NOT B) OR C))


Besides, the compiler should be smart enough to
optimize this without help from the programmer
pull/1/head
Richard Wackerbarth 9 years ago
parent
commit
35afea1c0e
  1. 3
      Marlin/cardreader.cpp

3
Marlin/cardreader.cpp

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

Loading…
Cancel
Save