diff options
author | Sahal Ghafur <sahal.abdulghafur@bt.com> | 2024-03-15 11:16:57 +0000 |
---|---|---|
committer | Sahal Ghafur <sahal.abdulghafur@bt.com> | 2024-03-15 11:16:57 +0000 |
commit | 73dffe380b1faa799f6944d730e71b1b85633f76 (patch) | |
tree | 2d035d587921d4e5f9a9045ae2ad76485cbe0393 /src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | |
parent | 75542501573cedb0b7d34a65df5ca650faf82d24 (diff) | |
download | trackermap-server-73dffe380b1faa799f6944d730e71b1b85633f76.tar.gz trackermap-server-73dffe380b1faa799f6944d730e71b1b85633f76.tar.bz2 trackermap-server-73dffe380b1faa799f6944d730e71b1b85633f76.zip |
Update SPO2 Key for Minifinder2
Diffstat (limited to 'src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java index 64373e344..e50655b37 100644 --- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java @@ -295,6 +295,13 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_HEART_RATE, heartRate); } break; + case 0x41: + buf.readUnsignedIntLE(); // timestamp + int spO2 = buf.readUnsignedByte(); + if (spO2 > 1) { + position.set(Position.KEY_SP02, spO2); + } + break; default: break; } |