Skip to content

Conversation

wankey
Copy link
Contributor

@wankey wankey commented Aug 28, 2025

fix a wrong index checked with packet from flydigi controller.

Description

the operation packet from flydigi controller is started with 0x04 0xfe .
when handle it in function HandleStatePacket. used wrong index for check 0xfe. so when people use flydigi official application , the response ack started with 0x04 0xff will be recongized to operation wrong.
20250828-174832

@sezero sezero requested a review from slouken August 28, 2025 10:31
Sint16 axis;
Uint64 timestamp = SDL_GetTicksNS();
if (data[0] != 0x04 && data[0] != 0xFE) {
if (data[0] != 0x04 && data[1] != 0xFE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the intention is correct (@slouken ), does && need changing to || ??

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I'll take care of it.

@slouken slouken merged commit 6176235 into libsdl-org:main Aug 28, 2025
@slouken
Copy link
Collaborator

slouken commented Aug 28, 2025

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants