Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed error in class 1 SET_CUR request #261

Open
xross opened this issue Apr 26, 2022 · 0 comments
Open

Missed error in class 1 SET_CUR request #261

xross opened this issue Apr 26, 2022 · 0 comments

Comments

@xross
Copy link
Collaborator

xross commented Apr 26, 2022

The following line means that AudioEndpointRequests_1 returns XUD_RES_OKAY for anything other than XUD_RES_OKAY returned from XUD_GetBuffer. This is assuming the local result variable is auto initialised to XUD_RES_OKAY.

          if((result != XUD_GetBuffer(ep0_out, buffer, length)) != XUD_RES_OKAY)
          {
              return result;
          }

This is not a warning in XC at the moment, but should be.

if((result != XUD_GetBuffer(ep0_out, (buffer, unsigned char[]), length)) != XUD_RES_OKAY)

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

No branches or pull requests

1 participant