diff options
author | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2010-09-26 01:42:33 +0200 |
---|---|---|
committer | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2010-09-26 01:42:33 +0200 |
commit | 73845df38038160c4eb9696cccc5babcce6dc216 (patch) | |
tree | 610f63303bb8827da772688aa53e436b9c232af9 /src | |
parent | dedee5ffa6e55b3cd7f08b7f4ff8c642f162d1ac (diff) | |
download | BlueGPS-73845df38038160c4eb9696cccc5babcce6dc216.zip BlueGPS-73845df38038160c4eb9696cccc5babcce6dc216.tar.gz BlueGPS-73845df38038160c4eb9696cccc5babcce6dc216.tar.bz2 |
improve nmea notification
Diffstat (limited to 'src')
-rw-r--r-- | src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java index 6762b4d..12e6c97 100644 --- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java +++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java @@ -322,8 +322,10 @@ public class BlueetoothGpsManager { private void notifyNmeaSentence(final String nmeaSentence){
if (enabled){
- parser.parseNmeaSentence(nmeaSentence);
+ final String recognizedSentence = parser.parseNmeaSentence(nmeaSentence);
final long timestamp = System.currentTimeMillis();
+ if (recognizedSentence != null){
+ Log.e("BT test", "NMEA : "+timestamp+" "+recognizedSentence);
synchronized(nmeaListeners) {
for(final NmeaListener listener : nmeaListeners){
notificationPool.execute(new Runnable(){
@@ -335,5 +337,6 @@ public class BlueetoothGpsManager { }
}
}
+ }
}
}
|