BadElf / gps-sdk

The official SDK for developers to use Bad Elf GPS accessories on iOS, Android, and Windows devices.
BSD 3-Clause "New" or "Revised" License
31 stars 13 forks source link

Only the first data rate command is effective #4

Open jimkeir opened 6 years ago

jimkeir commented 6 years ago

New Issue Checklist

Issue Description

Sending more than one data rate change does not work. The first one is accepted correctly.

Repro:

I have tried changing the "pingJunk" value to byte { 13, 10 } in case the EOL marker is expected by the GPS. Also tried an explicit flush on the OutputStream. Neither had any effect. I have confirmed in the debugger that the send() call is actually sending the data. The pingjunk calls don't seem to affect things because the first data change command sent invariably works, no matter how many pings have happened beforehand.

ENVIRONMENT

Bad Elf Model:

Bad Elf Pro

Firmware Version:

2.1.44

Platform:

Android 7 (Samsung S6 Edge +)

Protocol String:

Any string defined in BadElfGpsConnection.java .