Fix bad logic in autostart

As pointed out by @marcio-ao in #7638
This commit is contained in:
Scott Lahteine 2017-09-24 17:52:35 -05:00 committed by GitHub
parent 72e9534d11
commit ac2ac99e15

View File

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