From 589f37981bed135196b48878bcbc3d4c4b1520c8 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 10 Jun 2018 18:44:49 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7303cc09..55abe1ff 100644 --- a/README.md +++ b/README.md @@ -141,11 +141,11 @@ function Decoder(bytes, port) { decoded.wifi = (bytes[i++] << 8) | bytes[i++]; decoded.ble = (bytes[i++] << 8) | bytes[i++]; if (bytes.length > 4) { - decoded.latitude = ( (bytes[i++]) | (bytes[i++] << 8) | (bytes[i++] << 16) | bytes[i++] << 24 ); + decoded.latitude = ( (bytes[i++]) | (bytes[i++] << 8) | (bytes[i++] << 16) | bytes[i++] << 24 ); decoded.longitude = ( (bytes[i++]) | (bytes[i++] << 8) | (bytes[i++] << 16) | bytes[i++] << 24 ); - decoded.sats = ( bytes[i++] | (bytes[i++] << 8) ); - decoded.hdop = ( bytes[i++] | (bytes[i++] << 8) ); - decoded.altitude = ( bytes[i++] | (bytes[i++] << 8) ); + decoded.sats = ( bytes[i++] | (bytes[i++] << 8) ); + decoded.hdop = ( bytes[i++] | (bytes[i++] << 8) ); + decoded.altitude = ( bytes[i++] | (bytes[i++] << 8) ); } }