1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

NetworkMonitor: better "retry" messages

This commit is contained in:
Federico Fissore 2013-07-08 14:30:55 +02:00
parent 7b7f26f9d2
commit 21ca1cd9c5

View File

@ -100,12 +100,12 @@ public class NetworkMonitor extends AbstractMonitor {
@Override
public void run() {
try {
Thread.sleep(500);
Thread.sleep(1000);
} catch (InterruptedException e) {
// ignore
}
if (channel.isConnected()) {
NetworkMonitor.this.message(_("Connected!"));
NetworkMonitor.this.message(_("connected!"));
}
}
@ -124,7 +124,7 @@ public class NetworkMonitor extends AbstractMonitor {
}
}
if (connectionAttempts < MAX_CONNECTION_ATTEMPTS) {
s = _("Unable to connect: retrying (" + connectionAttempts + ")...") + "\n";
s = "\n" + _("Unable to connect: retrying (" + connectionAttempts + ")... ");
SwingUtilities.invokeLater(new Runnable() {
@Override
@ -139,7 +139,7 @@ public class NetworkMonitor extends AbstractMonitor {
}
});
} else {
s = _("Unable to connect: is the sketch using the bridge?") + "\n";
s = "\n" + _("Unable to connect: is the sketch using the bridge?");
}
}
super.message(s);