Commit 12705424 authored by Guillaume Gonnet's avatar Guillaume Gonnet
Browse files

Fix latitude in decode-payload.js

parent 26451868
......@@ -54,7 +54,7 @@ Temperature = Temperature / 4 - 55;
// Extract latitude.
let Latitude = (payload.readUInt32BE(2) >> 8) & 0x7FFFFF;
let Latitude = (payload.readUInt32BE(2) >> 8) & 0x7FFF;
Latitude = Latitude * 90 / MaxNorthPosition;
Latitude = Math.round(Latitude * 1000000) / 1000000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment