diff --git a/firmware/hw_layer/mass_storage/block_cache.cpp b/firmware/hw_layer/mass_storage/block_cache.cpp index 6d4593bf94..a34bbde598 100644 --- a/firmware/hw_layer/mass_storage/block_cache.cpp +++ b/firmware/hw_layer/mass_storage/block_cache.cpp @@ -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);