mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Disabling the serial monitor during uploads.
This commit is contained in:
@ -128,6 +128,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
|
|
||||||
boolean running;
|
boolean running;
|
||||||
boolean presenting;
|
boolean presenting;
|
||||||
|
boolean uploading;
|
||||||
|
|
||||||
// undo fellers
|
// undo fellers
|
||||||
JMenuItem undoItem, redoItem;
|
JMenuItem undoItem, redoItem;
|
||||||
@ -2158,6 +2159,8 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
try {
|
try {
|
||||||
serialMonitor.closeSerialPort();
|
serialMonitor.closeSerialPort();
|
||||||
serialMonitor.setVisible(false);
|
serialMonitor.setVisible(false);
|
||||||
|
|
||||||
|
uploading = true;
|
||||||
|
|
||||||
boolean success = sketch.exportApplet(new Target(
|
boolean success = sketch.exportApplet(new Target(
|
||||||
Base.getHardwarePath() + File.separator + "cores",
|
Base.getHardwarePath() + File.separator + "cores",
|
||||||
@ -2174,6 +2177,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
uploading = false;
|
||||||
//toolbar.clear();
|
//toolbar.clear();
|
||||||
toolbar.deactivate(EditorToolbar.EXPORT);
|
toolbar.deactivate(EditorToolbar.EXPORT);
|
||||||
}});
|
}});
|
||||||
@ -2217,6 +2221,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
|
|
||||||
|
|
||||||
public void handleSerial() {
|
public void handleSerial() {
|
||||||
|
if (uploading) return;
|
||||||
serialMonitor.setVisible(true);
|
serialMonitor.setVisible(true);
|
||||||
serialMonitor.openSerialPort();
|
serialMonitor.openSerialPort();
|
||||||
}
|
}
|
||||||
|
16
todo.txt
16
todo.txt
@ -3,18 +3,24 @@
|
|||||||
|
|
||||||
PROCESSING 5503 SYNC
|
PROCESSING 5503 SYNC
|
||||||
|
|
||||||
|
Get rid of unused preferences in the preferences dialog.
|
||||||
|
|
||||||
Add library keyword highlighting.
|
Add library keyword highlighting.
|
||||||
|
|
||||||
Allow closing of the serial monitor with keyboard short cuts.
|
Fix document icon on Windows.
|
||||||
|
|
||||||
|
Don't allow in-place modification of user-installed library examples.
|
||||||
|
|
||||||
|
Escape characters with copy as html.
|
||||||
|
|
||||||
|
Enable verbose output if shift (or alt?) is held down when pressing run or upload.
|
||||||
|
|
||||||
|
Add keyboard shortcut for opening the serial monitor.
|
||||||
|
|
||||||
Clear serial monitor button when the serial monitor opens.
|
Clear serial monitor button when the serial monitor opens.
|
||||||
|
|
||||||
Support libraries in the SKETCH/code folder?
|
Support libraries in the SKETCH/code folder?
|
||||||
|
|
||||||
Get rid of unused preferences in the preferences dialog.
|
|
||||||
|
|
||||||
Don't allow in-place modification of user-installed library examples.
|
|
||||||
|
|
||||||
Test the FTDI drivers in the arduino.dmg.
|
Test the FTDI drivers in the arduino.dmg.
|
||||||
|
|
||||||
Test bootloader burning w/ an AVRISP and a parallel programmer.
|
Test bootloader burning w/ an AVRISP and a parallel programmer.
|
||||||
|
Reference in New Issue
Block a user