We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L790 this cause ms->block_count to have the "Last Logical Block Address" _mass_storage.block_count = block_count - 1;
_mass_storage.block_count = block_count - 1;
and https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L345 send the "Last Logical Block Address" to host ("READ CAPACITY Command: 25h")
trans->msd_buf[0] = ms->block_count >> 24; trans->msd_buf[1] = 0xff & (ms->block_count >> 16); trans->msd_buf[2] = 0xff & (ms->block_count >> 8); trans->msd_buf[3] = 0xff & ms->block_count;
BUT, https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L369 for (i = 0; i < ms->block_count; i++) { shouldn't that be <= ms->block_count ?
for (i = 0; i < ms->block_count; i++) {
<= ms->block_count
The text was updated successfully, but these errors were encountered:
related? libopencm3/libopencm3-examples#112
Sorry, something went wrong.
something, test IRCBot
closed: not relevant anymore.
No branches or pull requests
https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L790
this cause ms->block_count to have the "Last Logical Block Address"
_mass_storage.block_count = block_count - 1;
and https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L345 send the "Last Logical Block Address" to host ("READ CAPACITY Command: 25h")
BUT, https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/class/usbd_msc.c#L369
for (i = 0; i < ms->block_count; i++) {
shouldn't that be<= ms->block_count
?The text was updated successfully, but these errors were encountered: