avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #51416] Bug when 'n' is typed after "Would you like t


From: Xavier
Subject: [avrdude-dev] [bug #51416] Bug when 'n' is typed after "Would you like this fuse to be changed back? [y/n] "
Date: Fri, 7 Jul 2017 21:18:53 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 OPR/46.0.2597.39

URL:
  <http://savannah.nongnu.org/bugs/?51416>

                 Summary: Bug when 'n' is typed after "Would you like this
fuse to be changed back? [y/n] "
                 Project: AVR Downloader/UploaDEr
            Submitted by: fjrg76
            Submitted on: Sat Jul  8 01:18:52 2017
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Xavier (fjrg76)
        Originator Email: 
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: 
             Device type: 

    _______________________________________________________

Details:

Nothing happens when n is typed in such situation. Just blank lines as long as
you type "enter" or any other key. The only way to exit the program is with
"Ctrl+C".

I digged into the source code (both 6.2 which is installed in my system, and
6.3) and there is nothing to do when "n" is typed. Something should happen in
this situation, so the user knows what's going on. Here is the code snippet,
if it worhs:

/* Now check what fuses are against what they should be */
    if (safemodeafter_efuse != safemode_efuse) {
      fuses_updated = 1;
      avrdude_message(MSG_INFO, "%s: safemode: efuse changed! Was %x, and is
now %x\n",
              progname, safemode_efuse, safemodeafter_efuse);

      /* Ask user - should we change them */
       if (silentsafe == 0)
            safemode_response = terminal_get_input("Would you like this fuse
to be changed back? [y/n] ");
       else
            safemode_response = yes;
       if (tolower((int)(safemode_response[0])) == 'y') { ///// THERE IS NO
'ELSE'
              
            /* Enough chit-chat, time to program some fuses and check them */
            if (safemode_writefuse (safemode_efuse, "efuse", pgm, p,
                                    10) == 0) {
                avrdude_message(MSG_INFO, "%s: safemode: and is now
rescued\n", progname);
            }
            else {
                avrdude_message(MSG_INFO, "%s: and COULD NOT be changed\n",
progname);
                failures++;
            }
       }
    }


Thanks!!




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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