ZakKemble / AVRDUDESS

A GUI for AVRDUDE
https://blog.zakkemble.net/avrdudess-a-gui-for-avrdude/
GNU General Public License v3.0
596 stars 129 forks source link

Better interface with fuse calculator web site #6

Closed buttim closed 8 years ago

buttim commented 8 years ago

I propose a simple modification to the "Fuse settings" link. It would be really useful if the fuse calculator was alreay in sync with the selected part and fuse settings possibly present in the GUI. It would suffice to modify the linkLabel1_LinkClicked function by replacing it with the following code:

            string sParam, sURL = WEB_ADDR_FUSE_SETTINGS;

            if (cmbMCU.SelectedIndex != 0) {
                sParam = "?P=" + cmbMCU.Text;
                if (txtLFuse.Text != "") sParam += "&V_LOW=" + txtLFuse.Text;
                if (txtHFuse.Text != "") sParam += "&V_HIGH=" + txtHFuse.Text;                
                if (txtEFuse.Text != "") sParam += "&V_EXTENDED=" + txtEFuse.Text;
                if (txtLFuse.Text != "" || txtHFuse.Text != "" || txtEFuse.Text != "")
                    sParam+= "&O_HEX=Apply+values";
                sURL += sParam;
            }
            System.Diagnostics.Process.Start(sURL);
ZakKemble commented 8 years ago

Cool, added in 2081841ba7898a624e2cf60ca952634a6954d792