kopia lustrzana https://github.com/sh123/codec2_talkie
Refactor
rodzic
93f98cc26b
commit
19d5d8adbd
|
@ -179,12 +179,12 @@ public class AprsIs implements Protocol, Runnable {
|
||||||
// NOTE, https://aprs-is.net/IGateDetails.aspx
|
// NOTE, https://aprs-is.net/IGateDetails.aspx
|
||||||
AprsIsData aprsIsData = new AprsIsData(src, dst, path, new String(data));
|
AprsIsData aprsIsData = new AprsIsData(src, dst, path, new String(data));
|
||||||
if (aprsIsData.isEligibleForRxGate()) {
|
if (aprsIsData.isEligibleForRxGate()) {
|
||||||
|
// strip "rf header" for third party packets before gating
|
||||||
|
if (aprsIsData.hasThirdParty()) {
|
||||||
|
aprsIsData = aprsIsData.thirdParty;
|
||||||
|
}
|
||||||
|
String rawData = aprsIsData.toString() + "\n";
|
||||||
synchronized (_toAprsIsQueue) {
|
synchronized (_toAprsIsQueue) {
|
||||||
// strip "rf header" for third party packets before gating
|
|
||||||
if (aprsIsData.hasThirdParty()) {
|
|
||||||
aprsIsData = aprsIsData.thirdParty;
|
|
||||||
}
|
|
||||||
String rawData = aprsIsData.toString() + "\n";
|
|
||||||
_toAprsIsQueue.put(rawData.getBytes());
|
_toAprsIsQueue.put(rawData.getBytes());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue