Fixed OsMo location data format.
This commit is contained in:
parent
bd0d9b2e67
commit
274ff122d5
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ public class OsMoTracker implements OsMoReactor {
|
|||
if (loc.hasAltitude()) {
|
||||
cmd.append("A").append((int) loc.getAltitude());
|
||||
}
|
||||
if (loc.hasSpeed()) {
|
||||
if (loc.hasSpeed() && (int) (loc.getSpeed() * 100) != 0) {
|
||||
cmd.append("S").append((float) ((int) (loc.getSpeed() * 100)) / 100f);
|
||||
}
|
||||
if (loc.hasBearing()) {
|
||||
|
|
Loading…
Reference in a new issue