mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +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 {
|
} else {
|
||||||
final int HASH_SIZE_USED = 8;
|
final int HASH_SIZE_USED = 8;
|
||||||
String jarName = new String();
|
String jarName = new String();
|
||||||
for (int i = 0; i < HASH_SIZE_USED; i++)
|
for (int i = 0; i < HASH_SIZE_USED; i++) {
|
||||||
jarName += Integer.toHexString((int) description
|
jarName += String.format("%02x", (int) description.getDouble(i + 60));
|
||||||
.getDouble(i + 60));
|
}
|
||||||
jarName += ".jar";
|
jarName += ".jar";
|
||||||
if (DEBUG) Log.d(TAG, "Attempting to load: " + jarName);
|
if (DEBUG) Log.d(TAG, "Attempting to load: " + jarName);
|
||||||
if (telemService.loadUavobjects(jarName, objMngr)) {
|
if (telemService.loadUavobjects(jarName, objMngr)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user