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

This commit is contained in:
Scott Lahteine authored and Richard Wackerbarth committed 2015-08-01 18:55:50 -05:00
1 parent 7ddf1cda1d
commit 0f5ada8cbd
1 file changed
+1 -2
+1 -2
View File
@@ -481,8 +481,7 @@ 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;