Skip to content

Commit f67919c

Browse files
author
Federico Fissore
committed
Manual merge ide.1.5.x
2 parents cb10999 + 34009f0 commit f67919c

File tree

352 files changed

+5151
-16032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+5151
-16032
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ build/windows/jre.zip
1818
build/windows/libastylej*
1919
build/windows/arduino-*.zip
2020
build/windows/dist/gcc-*.tar.gz
21+
build/windows/launch4j-*
22+
build/windows/launcher/launch4j
23+
build/windows/WinAVR-*.zip
2124
build/macosx/arduino-*.zip
2225
build/macosx/dist/gcc-*.tar.gz
2326
build/macosx/libastylej*
@@ -31,3 +34,4 @@ test-bin
3134
.DS_Store
3235
hardware/arduino/avr/libraries/Bridge/examples/XivelyClient/passwords.h
3336
avr-toolchain-*.zip
37+

app/src/cc/arduino/packages/Uploader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
You should have received a copy of the GNU General Public License
2121
along with this program; if not, write to the Free Software Foundation,
2222
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23-
24-
$Id$
2523
*/
2624

2725
package cc.arduino.packages;

app/src/cc/arduino/packages/discoverers/SerialDiscovery.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929

3030
package cc.arduino.packages.discoverers;
3131

32-
import cc.arduino.packages.BoardPort;
33-
import cc.arduino.packages.Discovery;
34-
import jssc.SerialPortList;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
3535
import processing.app.Base;
3636
import processing.app.Platform;
37+
import processing.app.Serial;
3738
import processing.app.helpers.PreferencesMap;
38-
39-
import java.util.ArrayList;
40-
import java.util.List;
39+
import cc.arduino.packages.BoardPort;
40+
import cc.arduino.packages.Discovery;
4141

4242
public class SerialDiscovery implements Discovery {
4343

@@ -48,7 +48,7 @@ public List<BoardPort> discovery() {
4848

4949
List<BoardPort> res = new ArrayList<BoardPort>();
5050

51-
String[] ports = SerialPortList.getPortNames();
51+
List<String> ports = Serial.list();
5252

5353
for (String port : ports) {
5454
String boardName = os.resolveDeviceAttachedTo(port, Base.packages, devicesListOutput);

app/src/cc/arduino/packages/uploaders/SerialUploader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
You should have received a copy of the GNU General Public License
2323
along with this program; if not, write to the Free Software Foundation,
2424
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25-
26-
$Id$
2725
*/
2826

2927
package cc.arduino.packages.uploaders;

app/src/processing/app/Base.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
* files and images, etc) that comes from that.
6262
*/
6363
public class Base {
64-
public static final int REVISION = 155;
64+
public static final int REVISION = 156;
6565
/** This might be replaced by main() if there's a lib/version.txt file. */
66-
static String VERSION_NAME = "0155";
66+
static String VERSION_NAME = "0156";
6767
/** Set true if this a proper release rather than a numbered revision. */
6868
static public boolean RELEASE = false;
6969

app/src/processing/app/Preferences.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public String toString() {
9393

9494
Language languages[] = {
9595
new Language(_("System Default"), "", ""),
96+
new Language(_("Albanian"), "shqip", "sq"),
9697
new Language(_("Arabic"), "العربية", "ar"),
9798
new Language(_("Aragonese"), "Aragonés", "an"),
9899
new Language(_("Belarusian"), "Беларуская мова", "be"),
@@ -145,6 +146,7 @@ public String toString() {
145146
Language missingLanguages[] = {
146147
new Language(_("Armenian"), "Հայերեն", "hy"),
147148
new Language(_("Asturian"), "Asturianu", "ast"),
149+
new Language(_("Basque"), "Euskara", "eu"),
148150
new Language(_("Bosnian"), "Bosanski", "bs"),
149151
new Language(_("Burmese (Myanmar)"), "ဗမာစကား", "my_MM"),
150152
new Language(_("Chinese (China)"), "", "zh_CN"),
@@ -153,8 +155,10 @@ public String toString() {
153155
new Language(_("Chinese (Taiwan) (Big5)"), "", "zh_TW.Big5"),
154156
new Language(_("Dutch (Netherlands)"), "Nederlands", "nl_NL"),
155157
new Language(_("Nepali"), "नेपाली", "ne"),
158+
new Language(_("N'Ko"), "ߒߞߏ", "nqo"),
156159
new Language(_("Marathi"), "मराठी", "mr"),
157160
new Language(_("Portugese"), "Português", "pt"),
161+
new Language(_("Persian (Iran)"), "فارسی (Iran)", "fa_IR"),
158162
};
159163

160164
/**

app/src/processing/app/Serial.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@
2424

2525
package processing.app;
2626

27-
import jssc.*;
28-
import processing.app.debug.MessageConsumer;
27+
import static processing.app.I18n._;
2928

3029
import java.io.IOException;
3130
import java.util.Arrays;
3231
import java.util.List;
3332

34-
import static processing.app.I18n._;
33+
import jssc.SerialPort;
34+
import jssc.SerialPortEvent;
35+
import jssc.SerialPortEventListener;
36+
import jssc.SerialPortException;
37+
import processing.app.debug.MessageConsumer;
3538

3639

3740
public class Serial implements SerialPortEventListener {
@@ -172,7 +175,7 @@ public void addListener(MessageConsumer consumer) {
172175
public synchronized void serialEvent(SerialPortEvent serialEvent) {
173176
if (serialEvent.isRXCHAR()) {
174177
try {
175-
byte[] buf = port.readBytes();
178+
byte[] buf = port.readBytes(serialEvent.getEventValue());
176179
if (buf.length > 0) {
177180
if (bufferLast == buffer.length) {
178181
byte temp[] = new byte[bufferLast << 1];

0 commit comments

Comments
 (0)