aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-07-30 02:49:59 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-07-30 02:49:59 +0000
commitaceb015ea75267f97b97e0bce11b7f6123b0bc06 (patch)
treebba57b4240dbf1fcc8f86b5cf87edbdf6b87daac /Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
parent40728fd20dc87eebab964ce8dc42db6df3d72a65 (diff)
downloadlufa-aceb015ea75267f97b97e0bce11b7f6123b0bc06.tar.gz
lufa-aceb015ea75267f97b97e0bce11b7f6123b0bc06.tar.bz2
lufa-aceb015ea75267f97b97e0bce11b7f6123b0bc06.zip
Fixed incorrect Dataflash buffer use in the DataflashManager_WriteBlocks_RAM() function of several demos/projects (thanks to Jeremy Willden).
Diffstat (limited to 'Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c')
-rw-r--r--Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c b/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
index 2100eb21f..2fb7c1b8e 100644
--- a/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
+++ b/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c
@@ -352,7 +352,7 @@ void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress,
/* Send the Dataflash buffer write command */
Dataflash_ToggleSelectedChipCS();
- Dataflash_SendByte(DF_CMD_BUFF1WRITE);
+ Dataflash_SendByte(UsingSecondBuffer ? DF_CMD_BUFF2WRITE : DF_CMD_BUFF1WRITE);
Dataflash_SendAddressBytes(0, 0);
}