1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Disabling uncertified boards warning even in java code, for good measure

This commit is contained in:
Federico Fissore
2015-05-05 09:17:50 +02:00
parent 060ec30e1c
commit 7e7a9d0fe8
7 changed files with 3 additions and 351 deletions

View File

@ -41,11 +41,6 @@ import static processing.app.I18n._;
public class SerialDiscovery implements Discovery {
static {
//makes transifex happy
_("Uncertified");
}
private Timer serialBoardsListerTimer;
private final List<BoardPort> serialBoardPorts;

View File

@ -39,8 +39,6 @@ import processing.app.helpers.PreferencesMap;
import java.util.*;
import static processing.app.I18n._;
public class SerialBoardsLister extends TimerTask {
private static final int MAX_TIME_AWAITING_FOR_PACKAGES = 5000;
@ -98,17 +96,9 @@ public class SerialBoardsLister extends TimerTask {
TargetBoard board = (TargetBoard) boardData.get("board");
if (board != null) {
String warningKey = "vid." + boardData.get("vid").toString() + ".warning";
String warning = board.getPreferences().get(warningKey);
prefs.put("warning", warning);
String boardName = board.getName();
if (boardName != null) {
if (warning != null) {
label += " (" + boardName + " - " + _(warning) + ")";
} else {
label += " (" + boardName + ")";
}
label += " (" + boardName + ")";
}
boardPort.setBoardName(boardName);
}