mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
Fix a really stupid bug where I ordered two cases together;
This commit is contained in:
parent
d75fef52ee
commit
e006ae2b4d
@ -610,7 +610,8 @@ static int32_t receiveObject(UAVTalkConnectionData *connection, uint8_t type, ui
|
||||
|
||||
// Process message type
|
||||
switch (type) {
|
||||
case UAVTALK_TYPE_OBJ | UAVTALK_TYPE_OBJ_TS:
|
||||
case UAVTALK_TYPE_OBJ:
|
||||
case UAVTALK_TYPE_OBJ_TS:
|
||||
// All instances, not allowed for OBJ messages
|
||||
if (obj && (instId != UAVOBJ_ALL_INSTANCES))
|
||||
{
|
||||
@ -624,7 +625,8 @@ static int32_t receiveObject(UAVTalkConnectionData *connection, uint8_t type, ui
|
||||
ret = -1;
|
||||
}
|
||||
break;
|
||||
case UAVTALK_TYPE_OBJ_ACK | UAVTALK_TYPE_OBJ_ACK_TS:
|
||||
case UAVTALK_TYPE_OBJ_ACK:
|
||||
case UAVTALK_TYPE_OBJ_ACK_TS:
|
||||
// All instances, not allowed for OBJ_ACK messages
|
||||
if (obj && (instId != UAVOBJ_ALL_INSTANCES))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user