kopia lustrzana https://github.com/sh123/codec2_talkie
Comments
rodzic
8e9511a8c8
commit
6ce10f6fe2
|
@ -102,6 +102,7 @@ public class Aprs implements Protocol {
|
|||
ProtocolCallback _protocolCallback = new ProtocolCallback() {
|
||||
@Override
|
||||
protected void onReceivePosition(Position position) {
|
||||
// TODO, process incoming position, stored to db, show on map
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
@ -119,6 +120,7 @@ public class Aprs implements Protocol {
|
|||
@Override
|
||||
protected void onReceiveData(String src, String dst, byte[] data) {
|
||||
AprsData aprsData = AprsDataFactory.fromBinary(data);
|
||||
// TODO, always invalid, needs fromBinary implementation
|
||||
if (aprsData != null && aprsData.isValid()) {
|
||||
Position position = aprsData.toPosition();
|
||||
if (position != null) {
|
||||
|
|
Ładowanie…
Reference in New Issue