diff --git a/bmp.c b/bmp.c index 3d803a6..0f4f344 100644 --- a/bmp.c +++ b/bmp.c @@ -185,6 +185,8 @@ for (uint16_t i = 0; i < SD_BLOCK_SIZE && status == BMP_BUSY; i++) { status = streamBMP(block[i]); } + } else { + break; } } while (status == BMP_BUSY); -} \ No newline at end of file +}