From a40edfa5348d407b66b8623a19aacb972b38d143 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 22 Jan 2025 15:30:28 -0800 Subject: [PATCH] use define instead of magic 512 --- firmware/hw_layer/mass_storage/block_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);