Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit a292677108ea5f012a726d37f0403f7423fc9ea3 1 parent f4f62f9
David A. Mellis damellis authored
15 app/src/processing/app/Preferences.java
View
@@ -116,6 +116,7 @@
JCheckBox exportSeparateBox;
JCheckBox verboseCompilationBox;
JCheckBox verboseUploadBox;
+ JCheckBox verifyUploadBox;
JCheckBox externalEditorBox;
JCheckBox memoryOverrideBox;
JTextField memoryField;
@@ -299,8 +300,16 @@ public void actionPerformed(ActionEvent e) {
d = box.getPreferredSize();
box.setBounds(left, top, d.width, d.height);
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
externalEditorBox = new JCheckBox(_("Use external editor"));
@@ -482,7 +491,8 @@ protected void applyFrame() {
// put each of the settings into the table
setBoolean("build.verbose", verboseCompilationBox.isSelected());
setBoolean("upload.verbose", verboseUploadBox.isSelected());
-
+ setBoolean("upload.verify", verifyUploadBox.isSelected());
+
// setBoolean("sketchbook.closing_last_window_quits",
// closingLastQuitsBox.isSelected());
//setBoolean("sketchbook.prompt", sketchPromptBox.isSelected());
@@ -539,6 +549,7 @@ protected void showFrame(Editor editor) {
// set all settings entry boxes to their actual status
verboseCompilationBox.setSelected(getBoolean("build.verbose"));
verboseUploadBox.setSelected(getBoolean("upload.verbose"));
+ verifyUploadBox.setSelected(getBoolean("upload.verify"));
//closingLastQuitsBox.
// setSelected(getBoolean("sketchbook.closing_last_window_quits"));
1  app/src/processing/app/debug/AvrdudeUploader.java
View
@@ -81,6 +81,7 @@ private boolean uploadViaBootloader(String buildPath, String className)
commandDownloader.add(
"-b" + Integer.parseInt(boardPreferences.get("upload.speed")));
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");
if (boardPreferences.get("upload.disable_flushing") == null ||
1  build/shared/lib/preferences.txt
View
@@ -248,6 +248,7 @@ target = arduino
programmer = arduino:avrispmkii
upload.using = bootloader
+upload.verify = true
serial.port=COM1
serial.databits=8
Please sign in to comment.
Something went wrong with that request. Please try again.