Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement third-party packet parsing
  • Loading branch information
ge0rg committed Mar 21, 2012
1 parent ec9df9c commit f4c0046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/AprsService.scala
Expand Up @@ -200,7 +200,12 @@ class AprsService extends Service {


def parsePacket(ts : Long, message : String) { def parsePacket(ts : Long, message : String) {
try { try {
val fap = Parser.parse(message) var fap = Parser.parse(message)
if (fap.getType() == APRSTypes.T_THIRDPARTY) {
Log.d(TAG, "parsePacket: third-party packet from " + fap.getSourceCall())
fap = Parser.parse(fap.getAprsInformation().toString())
}

if (fap.getAprsInformation() == null) { if (fap.getAprsInformation() == null) {
Log.d(TAG, "parsePacket() misses payload: " + message) Log.d(TAG, "parsePacket() misses payload: " + message)
return return
Expand Down

0 comments on commit f4c0046

Please sign in to comment.