aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/STK526
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-03 08:59:12 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-03 08:59:12 +0000
commitbae00a3d42f150482c973a7238f3501ccd026063 (patch)
treeef6d5c7852feb765e3e0c890b94b864d0dce399d /LUFA/Drivers/Board/STK526
parentf1baf12fae61a13e6d8e88655d709d74977322b5 (diff)
downloadlufa-bae00a3d42f150482c973a7238f3501ccd026063.tar.gz
lufa-bae00a3d42f150482c973a7238f3501ccd026063.tar.bz2
lufa-bae00a3d42f150482c973a7238f3501ccd026063.zip
Added support for the Dataflash mounted on the XPLAIN board. Added new XPLAIN_REV1 board target for the first revision XPLAIN board, which used a different (smaller) Dataflash IC to later revisions.
Diffstat (limited to 'LUFA/Drivers/Board/STK526')
-rw-r--r--LUFA/Drivers/Board/STK526/Dataflash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Board/STK526/Dataflash.h b/LUFA/Drivers/Board/STK526/Dataflash.h
index 0b388e301..66d23ef10 100644
--- a/LUFA/Drivers/Board/STK526/Dataflash.h
+++ b/LUFA/Drivers/Board/STK526/Dataflash.h
@@ -92,7 +92,7 @@
{
Dataflash_DeselectChip();
- if (PageAddress >= (DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS))
+ if (PageAddress >= DATAFLASH_PAGES)
return;
Dataflash_SelectChip(DATAFLASH_CHIP1);