kopia lustrzana https://github.com/ge0rg/aprsdroid
rodzic
233c62d9ba
commit
f3c6e600a7
|
@ -78,7 +78,11 @@ class KenwoodProto(service : AprsService, is : InputStream, os : OutputStream) e
|
||||||
if (output != null && (nmea.startsWith("$GPGGA") || nmea.startsWith("$GPRMC"))) {
|
if (output != null && (nmea.startsWith("$GPGGA") || nmea.startsWith("$GPRMC"))) {
|
||||||
Log.d(TAG, "NMEA >>> " + nmea)
|
Log.d(TAG, "NMEA >>> " + nmea)
|
||||||
try {
|
try {
|
||||||
output.write(nmea)
|
implicit val ec = scala.concurrent.ExecutionContext.global
|
||||||
|
scala.concurrent.Future {
|
||||||
|
output.write(nmea)
|
||||||
|
output.flush()
|
||||||
|
}
|
||||||
if (service.prefs.getBoolean("kenwood.gps_debug", false))
|
if (service.prefs.getBoolean("kenwood.gps_debug", false))
|
||||||
service.postAddPost(StorageDatabase.Post.TYPE_TX,
|
service.postAddPost(StorageDatabase.Post.TYPE_TX,
|
||||||
R.string.p_conn_kwd, nmea.trim())
|
R.string.p_conn_kwd, nmea.trim())
|
||||||
|
|
Ładowanie…
Reference in New Issue