1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Fix an insidious bug in the Android UAVObjectField unpack method for enums that

was exposed by shuffling field orders.  There goes 5 hours, FML.
This commit is contained in:
James Cotton 2012-05-10 14:42:19 -05:00
parent 097ae637bf
commit 2257bc5953

View File

@ -226,9 +226,9 @@ public class UAVObjectField {
}
case ENUM:
{
List<Byte> l = (List<Byte>) data;
List<Byte> l = (List<Byte>) this.data;
for (int index = 0 ; index < numElements; ++index) {
l.set(index, dataIn.get(index));
l.set(index, dataIn.get());
}
break;
}