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

Strings in USB audio descriptots do not update at runtime #406

Open
maxter-m opened this issue Jul 15, 2024 · 0 comments
Open

Strings in USB audio descriptots do not update at runtime #406

maxter-m opened this issue Jul 15, 2024 · 0 comments

Comments

@maxter-m
Copy link

maxter-m commented Jul 15, 2024

If I try to update the Serial Number string at runtime using the API void XUA_Endpoint0_setSerialStr(char* serial_str) from xua_endpoint0.c the corresponding string is NOT updated.

By looking at the code I found that g_serial_str is used only when creating the descriptor and not used at runtime, and the following change solves the issue

388c392
<     concatenateAndCopyStrings(serial_str, "", g_serial_str);
---
>     concatenateAndCopyStrings(serial_str, "", g_strTable.serialStr);

I think the same issue applies to other USB strings that can be populated at runtime via the XUA_Endpoint0_set*Str functions.

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