Exemple #1
0
 // Found MCU
 private void avrdude_OnDetectedMCU(object sender, DetectedMCUEventArgs e)
 {
     if (e.mcu != null)
     {
         Util.consoleWrite("Detected " + e.mcu.signature + " = " + e.mcu.fullName + Environment.NewLine);
         Invoke(new MethodInvoker(() =>
         {
             // Select the MCU that was found
             cmbMCU.SelectedItem = e.mcu;
         }));
     }
     else
     {
         // Failed to detect MCU, show log so we can see what went wrong
         Util.consoleWrite("Unable to detect MCU" + Environment.NewLine);
         Util.consoleWrite(Environment.NewLine + avrdude.log + Environment.NewLine);
     }
 }
Exemple #2
0
 // Found MCU
 private void avrdude_OnDetectedMCU(object sender, DetectedMCUEventArgs e)
 {
     if (e.mcu != null)
     {
         Util.consoleWrite("Detected " + e.mcu.signature + " = " + e.mcu.fullName + Environment.NewLine);
         Invoke(new MethodInvoker(() =>
         {
             // Select the MCU that was found
             cmbMCU.SelectedItem = e.mcu;
         }));
     }
     else
     {
         // Failed to detect MCU, show log so we can see what went wrong
         Util.consoleWrite("Unable to detect MCU" + Environment.NewLine);
         Util.consoleWrite(Environment.NewLine + avrdude.log + Environment.NewLine);
     }
 }