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:
parent
097ae637bf
commit
2257bc5953
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user