mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
AndroidGCS: Only use a 16 character name for UAVOs. Was breaking before on hardware.
This commit is contained in:
parent
c99d048eb9
commit
11dbdf3a52
2
Makefile
2
Makefile
@ -650,7 +650,7 @@ $$(UAVO_COLLECTION_DIR)/$(1)/uavohash: $$(UAVO_COLLECTION_DIR)/$(1)/uavo-xml
|
||||
$$(V1) python $$(ROOT_DIR)/make/scripts/version-info.py \
|
||||
--path=$$(ROOT_DIR) \
|
||||
--uavodir=$$(UAVO_COLLECTION_DIR)/$(1)/uavo-xml/shared/uavobjectdefinition \
|
||||
--format='$$$${UAVOSHA1TXT}' | xargs -n1 -I{} ln -sf {} $$(UAVO_COLLECTION_DIR)/$(1)/uavohash
|
||||
--format='$$$${UAVOSHA1TXT}' | sed -n 's/^\(................\).*/\1/p' | xargs -n1 -I{} ln -sf {} $$(UAVO_COLLECTION_DIR)/$(1)/uavohash
|
||||
|
||||
# Create the target of the symlink (ie. a directory named by the actual UAVO hash)
|
||||
$$(V0) @echo " UAVOHASH $(1) ->" $$$$(readlink $$(UAVO_COLLECTION_DIR)/$(1)/uavohash)
|
||||
|
@ -103,7 +103,7 @@ public abstract class TelemetryTask implements Runnable {
|
||||
if(description == null || description.getNumElements() < 100) {
|
||||
telemService.toastMessage("Failed to determine UAVO set");
|
||||
} else {
|
||||
final int HASH_SIZE_USED = 20;
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user