We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c265d86 commit 1cee16bCopy full SHA for 1cee16b
libraries/BlockDevices/SDCardBlockDevice.cpp
@@ -368,7 +368,8 @@ int SDCardBlockDevice::read(void *buffer, bd_addr_t add, bd_size_t _size) {
368
uint32_t start_add_of_block = (add / read_block_size);
369
rv = FSP_SUCCESS;
370
for(uint32_t i = 0; i < num_of_blocks && rv == FSP_SUCCESS; i++) {
371
- rv = R_SDHI_Read (&ctrl, (uint8_t *)((uint8_t *)buffer + (i * read_block_size)), start_add_of_block + i, 1);
+ uint8_t *buf = (uint8_t *)buffer;
372
+ rv = R_SDHI_Read (&ctrl, buf + (i * read_block_size), start_add_of_block + i, 1);
373
if(rv == FSP_SUCCESS) {
374
rv = wait_for_completition();
375
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments