From 102bec28424748992fc2bc7da376ec4263a9ccd6 Mon Sep 17 00:00:00 2001 From: radiomanV Date: Fri, 7 Sep 2018 11:59:13 +0300 Subject: [PATCH] Update program --- InfoIcDump/Form1.cs | 12 +++++------- InfoIcDump/binary/InfoIcDump.exe | Bin 76288 -> 76288 bytes 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/InfoIcDump/Form1.cs b/InfoIcDump/Form1.cs index a2ae36f..1b0ddb8 100644 --- a/InfoIcDump/Form1.cs +++ b/InfoIcDump/Form1.cs @@ -250,11 +250,12 @@ namespace InfoIcDump //device list selection was changed private void DeviceList_SelectedIndexChanged(System.Object sender, System.EventArgs e) { - DevStruct device = new DevStruct(); + DevStruct devstruct = new DevStruct(); uint[] tag1 = (uint[])MfcList.Tag; uint[] tag2 = (uint[])DeviceList.Tag; - GetIcStru(tag1[MfcList.SelectedIndex], tag2[DeviceList.SelectedIndex], ref device); - txt_info.Text = get_ic_string_ini(device).ToString(); + GetIcStru(tag1[MfcList.SelectedIndex], tag2[DeviceList.SelectedIndex], ref devstruct); + devstruct.chip_id = change_endianess(devstruct.chip_id, devstruct.chip_id_size); + txt_info.Text = get_ic_string_ini(devstruct).ToString(); label_devs.Text = "Devices:" + DeviceList.Items.Count.ToString(); } @@ -351,7 +352,6 @@ namespace InfoIcDump //Get device info in ini format private string get_ic_string_ini(DevStruct devstruct) { - devstruct.chip_id = change_endianess(devstruct.chip_id, devstruct.chip_id_size); return string.Format( @"[{0}] protocol = 0x{1:x2} @@ -383,7 +383,6 @@ fuses = {18}", //Get device info in c header format private string get_ic_string_c(DevStruct devstruct) { - devstruct.chip_id = change_endianess(devstruct.chip_id, devstruct.chip_id_size); return string.Format( @"{{ .name = ""{0}"", @@ -418,7 +417,6 @@ fuses = {18}", //Get device info in xml format private device get_ic_xml(DevStruct devstruct) { - devstruct.chip_id = change_endianess(devstruct.chip_id, devstruct.chip_id_size); device xml_chip = new device(); xml_chip.icname = devstruct.name.Trim(); xml_chip.protocol = "0x" + devstruct.protocol.ToString("x2"); @@ -505,6 +503,7 @@ fuses = {18}", //Remove spaces devstruct.name = devstruct.name.Replace(" ", ""); + devstruct.chip_id = change_endianess(devstruct.chip_id, devstruct.chip_id_size); //If not duplicate process the chip if (checkBox5.Checked == false || !is_duplicate(devices_list, devstruct)) @@ -527,7 +526,6 @@ fuses = {18}", break; } } - devices_list.Add(devstruct); } else diff --git a/InfoIcDump/binary/InfoIcDump.exe b/InfoIcDump/binary/InfoIcDump.exe index 3c04879347c6ff6232303d4f61c76ce0e2e8ec72..113838c1ea4e94d570000379c9d07b5edf12d2bc 100644 GIT binary patch delta 900 zcmZ9KO-PhM7{~uJ^RBMj`t@$B8!hgxsJo@&N>YZHA8b&8NJ}8Hgnf8OIuz2O=wr2m z)Y8FqDgr?aA&jVuF+u`QqShhyun=~Lz`aC=h$5s2dS>5O*czDkKfnJxGtWHl%vjbK z%Nmon_+V!`Rm0w;9}lq0lCiL3YZLIx<6TX1kcC-Rj#{^d$&xOtv-`;lUu2I zVQO{TEMsh5KJY}@1@*@B+(@Fw&8QlxmOdXyf0CAw>Zbh&mA98PPFm=D4In^%8)>2M zCT=G`M(QTjP46>m$EW{^PXZ(Mf`|Vth&cfLtM8B&Cg>nuBL4?zVFGWFeIU}pcsFtW zK&0F8v>e~5pdo{f7FSnxt?6|r$K%-KDfr=Pu;@2Y4SY70h!lbd+Egvl zsKqs#Lc%0k30v#-iF-s95sPAC8g-boDK2JFk5BY^biQGt21JvM7G4sM5XNk?MM?1# z5ja~cx-VYRtt{F!M+uv7@qjhACf*X&>6&TNk0OI+oXgV+zK9J(F>lWW=xMg1v`u^^KmUzB5N%hE}Ut ul{~oGZ_W~Lw`DyJrbAV1LA_W#$z(ULP-W}ChIpp!)wdn&J(H)p0)GLx3zbO# delta 910 zcma))Ur19?9LK-sp1V!wpS6u?gW>(14Q9^`JsPrH{2(=37&)$My(9qO(QoXMUE`Mp()_Po8Xhs4FlaHVv%A0ZtqQ zjJt$a$*P=VT>E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