Skip to content

Commit

Permalink
Fix Cradlepoint RSSI decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Aug 4, 2017
1 parent 441b80a commit a1b426c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/traccar/protocol/CradlepointProtocolDecoder.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016 Anton Tananaev ([email protected])
* Copyright 2016 - 2017 Anton Tananaev ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -43,7 +43,7 @@ public CradlepointProtocolDecoder(CradlepointProtocol protocol) {
.expression("([^,]+),") // carrier
.expression("([^,]+)?,") // serdis
.number("(-?d+),") // rsrp
.number("(-?d+),") // dbm
.number("(-?d+),") // rssi
.number("(-?d+),") // rsrq
.expression("([^,]+)?,") // ecio
.expression("([^,]+)?") // wan ip
Expand Down Expand Up @@ -75,7 +75,7 @@ protected Object decode(
position.setSpeed(parser.nextDouble(0));
position.setCourse(parser.nextDouble(0));

parser.skip(4);
parser.skip(3);

position.set(Position.KEY_RSSI, parser.nextDouble());

Expand Down

0 comments on commit a1b426c

Please sign in to comment.