avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bug #50087] option parse error: after -U flash:w:program_


From: Joerg Wunsch
Subject: [avrdude-dev] [bug #50087] option parse error: after -U flash:w:program_to_upload.hex, subsequent -V ignored
Date: Thu, 19 Jan 2017 10:38:01 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:46.0) Gecko/20100101 Firefox/46.0

Update of bug #50087 (project avrdude):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

The problem is that the -U option parser already evaluates 
the "verify" flag (see the "HERE!" comment):


      case 'U':
        upd = parse_op(optarg);
        if (upd == NULL) {
          avrdude_message(MSG_INFO, "%s: error parsing update operation
'%s'\n",
                  progname, optarg);
          exit(1);
        }
        ladd(updates, upd);

        if (/* HERE! */ verify && upd->op == DEVICE_WRITE) {
          upd = dup_update(upd);
          upd->op = DEVICE_VERIFY;
          ladd(updates, upd);
        }
        break;


Thus, if the -V option has not been present at this point, 
it's being ignored ("verify" defaults to 1).

Unfortunately, there's no easy fix for that.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?50087>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]