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
master
Richard Wackerbarth 9 years ago
parent 3c7470dbc3
commit 35afea1c0e

@ -481,7 +481,8 @@ void CardReader::write_command(char *buf) {
}
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;

Loading…
Cancel
Save