aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-09-26 01:42:33 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-09-26 01:42:33 +0200
commit73845df38038160c4eb9696cccc5babcce6dc216 (patch)
tree610f63303bb8827da772688aa53e436b9c232af9 /src
parentdedee5ffa6e55b3cd7f08b7f4ff8c642f162d1ac (diff)
downloadBlueGPS-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.java5
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 {
}
}
}
+ }
}
}