Add digipeated packets to export log

pull/369/head
Mike 2024-12-07 09:13:22 -08:00
rodzic 24f6fc18ee
commit 1ff0f0f8a2
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -376,12 +376,12 @@ class StorageDatabase(context : Context) extends
def getExportPosts(call : String) : Cursor = {
if (call != null)
getWritableDatabase().query(Post.TABLE, Post.COLUMNS,
"type in (0, 3) and message LIKE ?",
"type in (0, 3, 5) and message LIKE ?",
Array("%s%%".format(call)),
null, null, null, null)
else
getWritableDatabase().query(Post.TABLE, Post.COLUMNS,
"type in (0, 3)", null,
"type in (0, 3, 5)", null,
null, null, null, null)
}

Wyświetl plik

@ -497,7 +497,7 @@ trait UIHelper extends Activity
val packet = c.getString(COLUMN_MESSAGE)
fo.print(ts)
fo.print("\t")
fo.print(if (tpe == TYPE_INCMG) "RX" else "TX")
fo.print(if (tpe == TYPE_INCMG) "RX" else if (tpe == TYPE_DIGI) "DP" else "TX" )
fo.print("\t")
fo.println(packet)
}