mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-06 01:08:25 +01:00
Adding preference for disabling verification on upload (Nathan Seidle)
Adds a checkbox to the preferences dialog that controls whether or not to verify code on upload via serial (verification still always occurs when uploading using a programmer). It is checked by default to match current behavior.
This commit is contained in:
parent
f4f62f9a12
commit
a292677108
@ -116,6 +116,7 @@ public class Preferences {
|
|||||||
JCheckBox exportSeparateBox;
|
JCheckBox exportSeparateBox;
|
||||||
JCheckBox verboseCompilationBox;
|
JCheckBox verboseCompilationBox;
|
||||||
JCheckBox verboseUploadBox;
|
JCheckBox verboseUploadBox;
|
||||||
|
JCheckBox verifyUploadBox;
|
||||||
JCheckBox externalEditorBox;
|
JCheckBox externalEditorBox;
|
||||||
JCheckBox memoryOverrideBox;
|
JCheckBox memoryOverrideBox;
|
||||||
JTextField memoryField;
|
JTextField memoryField;
|
||||||
@ -300,6 +301,14 @@ public class Preferences {
|
|||||||
box.setBounds(left, top, d.width, d.height);
|
box.setBounds(left, top, d.width, d.height);
|
||||||
top += d.height + GUI_BETWEEN;
|
top += d.height + GUI_BETWEEN;
|
||||||
|
|
||||||
|
// [ ] Verify code after upload
|
||||||
|
|
||||||
|
verifyUploadBox = new JCheckBox("Verify code after upload");
|
||||||
|
pain.add(verifyUploadBox);
|
||||||
|
d = verifyUploadBox.getPreferredSize();
|
||||||
|
verifyUploadBox.setBounds(left, top, d.width + 10, d.height);
|
||||||
|
right = Math.max(right, left + d.width);
|
||||||
|
top += d.height + GUI_BETWEEN;
|
||||||
|
|
||||||
// [ ] Use external editor
|
// [ ] Use external editor
|
||||||
|
|
||||||
@ -482,6 +491,7 @@ public class Preferences {
|
|||||||
// put each of the settings into the table
|
// put each of the settings into the table
|
||||||
setBoolean("build.verbose", verboseCompilationBox.isSelected());
|
setBoolean("build.verbose", verboseCompilationBox.isSelected());
|
||||||
setBoolean("upload.verbose", verboseUploadBox.isSelected());
|
setBoolean("upload.verbose", verboseUploadBox.isSelected());
|
||||||
|
setBoolean("upload.verify", verifyUploadBox.isSelected());
|
||||||
|
|
||||||
// setBoolean("sketchbook.closing_last_window_quits",
|
// setBoolean("sketchbook.closing_last_window_quits",
|
||||||
// closingLastQuitsBox.isSelected());
|
// closingLastQuitsBox.isSelected());
|
||||||
@ -539,6 +549,7 @@ public class Preferences {
|
|||||||
// set all settings entry boxes to their actual status
|
// set all settings entry boxes to their actual status
|
||||||
verboseCompilationBox.setSelected(getBoolean("build.verbose"));
|
verboseCompilationBox.setSelected(getBoolean("build.verbose"));
|
||||||
verboseUploadBox.setSelected(getBoolean("upload.verbose"));
|
verboseUploadBox.setSelected(getBoolean("upload.verbose"));
|
||||||
|
verifyUploadBox.setSelected(getBoolean("upload.verify"));
|
||||||
|
|
||||||
//closingLastQuitsBox.
|
//closingLastQuitsBox.
|
||||||
// setSelected(getBoolean("sketchbook.closing_last_window_quits"));
|
// setSelected(getBoolean("sketchbook.closing_last_window_quits"));
|
||||||
|
@ -81,6 +81,7 @@ public class AvrdudeUploader extends Uploader {
|
|||||||
commandDownloader.add(
|
commandDownloader.add(
|
||||||
"-b" + Integer.parseInt(boardPreferences.get("upload.speed")));
|
"-b" + Integer.parseInt(boardPreferences.get("upload.speed")));
|
||||||
commandDownloader.add("-D"); // don't erase
|
commandDownloader.add("-D"); // don't erase
|
||||||
|
if (!Preferences.getBoolean("upload.verify")) commandDownloader.add("-V"); // disable verify
|
||||||
commandDownloader.add("-Uflash:w:" + buildPath + File.separator + className + ".hex:i");
|
commandDownloader.add("-Uflash:w:" + buildPath + File.separator + className + ".hex:i");
|
||||||
|
|
||||||
if (boardPreferences.get("upload.disable_flushing") == null ||
|
if (boardPreferences.get("upload.disable_flushing") == null ||
|
||||||
|
@ -248,6 +248,7 @@ target = arduino
|
|||||||
programmer = arduino:avrispmkii
|
programmer = arduino:avrispmkii
|
||||||
|
|
||||||
upload.using = bootloader
|
upload.using = bootloader
|
||||||
|
upload.verify = true
|
||||||
|
|
||||||
serial.port=COM1
|
serial.port=COM1
|
||||||
serial.databits=8
|
serial.databits=8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user