Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ starting after version 4.0.12, but historic entries might not.
- Fix macOS version detection for macOS 11 and newer (fixes #456)
- `examples/labs/`: Fix building of Qt examples by migrating to Qt 5
- Fixed the kernel center of CV-related image filters (was off-center before)
- Fix struct alignment issues on macOS/ARM64

### Removed

Expand Down
13 changes: 7 additions & 6 deletions src/daemon/psmove_moved_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct PACKED PSMoveMovedProtocolHeader {
uint16_t controller_id;
};

union PACKED PSMoveMovedRequest {
typedef union PACKED PSMoveMovedRequest {
struct {
struct PSMoveMovedProtocolHeader header;

Expand All @@ -77,9 +77,9 @@ union PACKED PSMoveMovedRequest {
};

uint8_t bytes[16];
};
} PSMoveMovedRequest;

union PACKED PSMoveMovedResponse {
typedef union PACKED PSMoveMovedResponse {
struct {
struct PSMoveMovedProtocolHeader header;

Expand All @@ -106,12 +106,13 @@ union PACKED PSMoveMovedResponse {
uint8_t btaddr[6];
} get_host_btaddr;
};

uint8_t _padding[3];
};

uint8_t bytes[64];
};
} PSMoveMovedResponse;

static_assert(sizeof(PSMoveMovedRequest) == 16, "");
static_assert(sizeof(PSMoveMovedResponse) == 64, "");

#ifdef _WIN32
#pragma pack(pop)
Expand Down
Loading