Skip to content

Commit

Permalink
use define instead of magic 512
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 22, 2025
1 parent f60904e commit a40edfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/hw_layer/mass_storage/block_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void BlockCache::readThread() {
}

// Copy from the cache to the output buffer
memcpy(h->buffer, m_cachedBlockData, 512);
memcpy(h->buffer, m_cachedBlockData, MMCSD_BLOCK_SIZE);

// return the completed request
m_completed.post(h, TIME_INFINITE);
Expand Down

0 comments on commit a40edfa

Please sign in to comment.