From 23ada65625220332c187adbb624840509e79e762 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 27 Sep 2015 15:47:35 +1000 Subject: Fixed incorrect comments in DataflashManager.c (thanks to Andrew Milkovich). --- .../ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c') diff --git a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c index 7d7c6e1d9..121985c43 100644 --- a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c +++ b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.c @@ -210,7 +210,7 @@ void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInf { uint8_t BytesInBlockDiv16 = 0; - /* Write an endpoint packet sized data block to the Dataflash */ + /* Read an endpoint packet sized data block from the Dataflash */ while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4)) { /* Check if the endpoint is currently full */ @@ -417,7 +417,7 @@ void DataflashManager_ReadBlocks_RAM(const uint32_t BlockAddress, { uint8_t BytesInBlockDiv16 = 0; - /* Write an endpoint packet sized data block to the Dataflash */ + /* Read an endpoint packet sized data block from the Dataflash */ while (BytesInBlockDiv16 < (VIRTUAL_MEMORY_BLOCK_SIZE >> 4)) { /* Check if end of Dataflash page reached */ -- cgit v1.2.3