sh123 2022-08-21 00:45:41 +03:00
rodzic 2475554097
commit c2c3ef4fab
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -252,6 +252,7 @@ public class AprsIs implements Protocol, Runnable {
tcpIp.write(loginCmd.getBytes());
Log.i(TAG, "Connected to " + _server);
} catch (IOException e) {
// TODO, notify parent
Log.w(TAG, "Failed to connect");
e.printStackTrace();
try {
@ -262,6 +263,7 @@ public class AprsIs implements Protocol, Runnable {
isConnected = false;
continue;
}
// TODO, notify user
isConnected = true;
}
// read data

Wyświetl plik

@ -46,7 +46,7 @@ public class AprsDataType {
}
private DataType getDataTypeFromIdent(char ident) {
if (ident == '`') {
if (ident == '`' || ident == '\'') {
return DataType.MIC_E;
} else if (ident == ':') {
return DataType.MESSAGE;