-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG] Devmod Modules First Index is Always 0 #696
Comments
Example given in the spec is: [uint, uint, tstr1, tstr2, ...] So you can return the modules one at a time: ...[n, 1, name][n+1, 1, name]... or in a larger list The latter is the original intent, actually. I also sort of expected that you would list them in some order, but this is not mandated. In fact, you can list them differently on subsequent calls. But the intent is that you assign some order to all your modules, then use this mechanism to chop up the list into chunks that fit into serviceinfo. |
I guess the text actually permits you to use the same number for each element, so if you have modules a, b, c, d, you could return [0, 1, a] and the idea is that you are reordering the list each time. I would not advise this particular behavior, and I'll try to clarify in 1.2. |
Here is my proposed change to the text in FDO 1.2: Enumerates the names of modules supported by this [FIDOIOT] Device. |
Only thing I would change is that |
Done. |
Describe the bug
Service info sent in message 68 for devmod looks as below.
There are two "devmod:modules" messages, containing bstr data:
The spec is unclear, only stating that "the first element is an integer from zero to devmod:nummodules", but spec authors have verified to me that the purpose of the first element is "start index".
This means that the first message is interpreted as "from index 0, insert 1 element." Therefore the second message should be "from index 1, insert 1 element" and then you have a 2 element list, matching nummodules.
To Reproduce
Expected behavior
Modules bstr data should be
The text was updated successfully, but these errors were encountered: