aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2024-03-15 06:31:09 -0700
committerGitHub <noreply@github.com>2024-03-15 06:31:09 -0700
commit97e4a94df6001c8c64a2e315bbe59fce35115ec8 (patch)
treec059e6ec323f48511c5551a409e12ae59d7f1ba3 /src/main/java
parent75542501573cedb0b7d34a65df5ca650faf82d24 (diff)
parenta9b08325240b3f4c76d5f6a042c6740b1f81a889 (diff)
downloadtrackermap-server-97e4a94df6001c8c64a2e315bbe59fce35115ec8.tar.gz
trackermap-server-97e4a94df6001c8c64a2e315bbe59fce35115ec8.tar.bz2
trackermap-server-97e4a94df6001c8c64a2e315bbe59fce35115ec8.zip
Merge pull request #5285 from sahalghaf/update-sp02-minifinder2
Update SPO2 Key for Minifinder2
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java7
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..2d6bde89f 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("spO2", spO2);
+ }
+ break;
default:
break;
}