Skip to content

Commit

Permalink
Enhance Update Programmer dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertinant committed Dec 5, 2014
1 parent a316c41 commit b5ab630
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/src/processing/app/debug/MSP430Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ public boolean uploadUsingPreferences(String buildPath, String className, boolea
int retry = 0;
if(exception == null) return ret;
if (ret == false && (exception.message.indexOf("update needed") != -1)) {
String message = "<html>";
JLabel message = new JLabel("<html><body><b>The firmware of your Launchpad programmer needs an update.</b><br>"
+ " You will need to update before you can upload your Sketch.<br>"
+ " To update, select <b>\"Update programmer\"</b> from the <b>\"Tools\"</b> menu.");
String mcu = boardPreferences.get("build.mcu");
if(mcu.matches("msp430fr5969")) {
message += "WARNING: If you are using the <b>MSP-EXP430FR5969</b> then<br>"
+ "<b>versions lower than v2.0 are no longer supported</b>.<br>"
+ "You can still use Energia 13 with versions lower than V2.0<br><br>";
message.setText(message.getText() + " <br><br><hr><b>WARNING:</b> If you are using the <font color=\"red\"><b>MSP-EXP430FR5969</b></font> then<br>"
+ " <b>versions lower than v2.0 are no longer supported</b>.<br>"
+ " You can still use Energia 13 with versions lower than V2.0<br><hr>");
}

message += "The firmware of your Launchpad programmer needs an update.<br>"
+ "You will need to update before you can upload your Sketch.<br>"
+ "To update, select <b>\"Update programmer\"</b> from the <b>\"Tools\"</b> menu.<br>"
+ "</html";

message.setText(message.getText() + "</body></html>");
JOptionPane Optpane = new JOptionPane();
Optpane.setSize(400, 200);
JOptionPane.showMessageDialog(editor, message, "Firmware update needed", JOptionPane.WARNING_MESSAGE);
}

Expand Down

0 comments on commit b5ab630

Please sign in to comment.