mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Fix -n warning for first interactive terminal
This commit is contained in:
@@ -1499,7 +1499,7 @@ int main(int argc, char * argv [])
|
||||
pgm->flush_cache(pgm, p);
|
||||
wrmem |= upd->op == DEVICE_WRITE;
|
||||
}
|
||||
if((uflags & UF_NOWRITE) && !terminal++ && upd->cmdline)
|
||||
if((uflags & UF_NOWRITE) && upd->cmdline && !terminal++)
|
||||
pmsg_warning("the terminal ignores option -n, that is, it writes to the device\n");
|
||||
rc = do_op(pgm, p, upd, uflags);
|
||||
if (rc && rc != LIBAVRDUDE_SOFTFAIL) {
|
||||
|
||||
Reference in New Issue
Block a user