1
0
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:
James Cotton 2012-10-15 19:16:48 -05:00
parent f94f187528
commit 5c55dc07b0

View File

@ -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)) {