bugAVR Downloader/UploaDEr - Bugs: bug #51416, Bug when 'n' is typed after...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51416: Bug when 'n' is typed after "Would you like this fuse to be changed back? [y/n] "

Submitted by:  Xavier <fjrg76>
Submitted on:  Sat 08 Jul 2017 01:18:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Xavier (fjrg76)
Open/Closed: OpenRelease: 6.3
Programmer hardware: Device type: 

Sat 08 Jul 2017 01:18:52 AM UTC, original submission:

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!!

Xavier <fjrg76>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fjrg76 (Submitted the item)
  • -unavailable- added by fjrg76
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 08 Jul 2017 01:18:52 AM UTCfjrg76Carbon-Copy-=>Added fjrg76

    Back to the top


    Powered by Savane 3.1-cleanup1