mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
parent
8ab419fd13
commit
7f87574f7e
@ -2433,6 +2433,10 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
if (serialMenu.getItemCount() == 0) statusError(e);
|
if (serialMenu.getItemCount() == 0) statusError(e);
|
||||||
else if (serialPrompt()) run();
|
else if (serialPrompt()) run();
|
||||||
else statusNotice(_("Upload canceled."));
|
else statusNotice(_("Upload canceled."));
|
||||||
|
} catch (PreferencesMapException e) {
|
||||||
|
statusError(I18n.format(
|
||||||
|
_("Error while uploading: missing '{0}' configuration parameter"),
|
||||||
|
e.getMessage()));
|
||||||
} catch (RunnerException e) {
|
} catch (RunnerException e) {
|
||||||
//statusError("Error during upload.");
|
//statusError("Error during upload.");
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
@ -2469,6 +2473,10 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
if (serialMenu.getItemCount() == 0) statusError(e);
|
if (serialMenu.getItemCount() == 0) statusError(e);
|
||||||
else if (serialPrompt()) run();
|
else if (serialPrompt()) run();
|
||||||
else statusNotice(_("Upload canceled."));
|
else statusNotice(_("Upload canceled."));
|
||||||
|
} catch (PreferencesMapException e) {
|
||||||
|
statusError(I18n.format(
|
||||||
|
_("Error while uploading: missing '{0}' configuration parameter"),
|
||||||
|
e.getMessage()));
|
||||||
} catch (RunnerException e) {
|
} catch (RunnerException e) {
|
||||||
//statusError("Error during upload.");
|
//statusError("Error during upload.");
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
|
@ -51,7 +51,7 @@ public class BasicUploader extends Uploader {
|
|||||||
TargetPlatform targetPlatform = Base.getTargetPlatform();
|
TargetPlatform targetPlatform = Base.getTargetPlatform();
|
||||||
PreferencesMap prefs = Preferences.getMap();
|
PreferencesMap prefs = Preferences.getMap();
|
||||||
prefs.putAll(Base.getBoardPreferences());
|
prefs.putAll(Base.getBoardPreferences());
|
||||||
prefs.putAll(targetPlatform.getTool(prefs.get("upload.tool")));
|
prefs.putAll(targetPlatform.getTool(prefs.getOrExcept("upload.tool")));
|
||||||
|
|
||||||
// if no protocol is specified for this board, assume it lacks a
|
// if no protocol is specified for this board, assume it lacks a
|
||||||
// bootloader and upload using the selected programmer.
|
// bootloader and upload using the selected programmer.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user