mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
AndroidGCS: The leading 0 in each two bytes of the UAVO hash could get chewed up
This commit is contained in:
parent
f94f187528
commit
5c55dc07b0
@ -431,9 +431,9 @@ public class TelemetryMonitor extends Observable {
|
||||
} else {
|
||||
final int HASH_SIZE_USED = 8;
|
||||
String jarName = new String();
|
||||
for (int i = 0; i < HASH_SIZE_USED; i++)
|
||||
jarName += Integer.toHexString((int) description
|
||||
.getDouble(i + 60));
|
||||
for (int i = 0; i < HASH_SIZE_USED; i++) {
|
||||
jarName += String.format("%02x", (int) description.getDouble(i + 60));
|
||||
}
|
||||
jarName += ".jar";
|
||||
if (DEBUG) Log.d(TAG, "Attempting to load: " + jarName);
|
||||
if (telemService.loadUavobjects(jarName, objMngr)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user