aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/Dataflash.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-09 00:50:55 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-09 00:50:55 +0000
commit7ace314cc12f24c1c3108311bdfb3a2ed484ab37 (patch)
tree5ff719df1d93ea5cfc6393999e42468e0b727d1d /LUFA/Drivers/Board/Dataflash.h
parent2281750b5fdf046ed606e567eb60cf4e647015dd (diff)
downloadlufa-7ace314cc12f24c1c3108311bdfb3a2ed484ab37.tar.gz
lufa-7ace314cc12f24c1c3108311bdfb3a2ed484ab37.tar.bz2
lufa-7ace314cc12f24c1c3108311bdfb3a2ed484ab37.zip
Increase timeout of Mass Storage and Still Image host commands to 10 seconds (up from 5) to account for slow-processing devices.
Added brace guards to macros with parameters to prevent unintended changed evaluation of the macro expression. Minor code cleanups (remove redundant comments, fix spacing, etc.).
Diffstat (limited to 'LUFA/Drivers/Board/Dataflash.h')
-rw-r--r--LUFA/Drivers/Board/Dataflash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Board/Dataflash.h b/LUFA/Drivers/Board/Dataflash.h
index f65298a1d..22f4b10d6 100644
--- a/LUFA/Drivers/Board/Dataflash.h
+++ b/LUFA/Drivers/Board/Dataflash.h
@@ -111,7 +111,7 @@
#define Dataflash_GetSelectedChip() (DATAFLASH_CHIPCS_PORT & DATAFLASH_CHIPCS_MASK)
#define Dataflash_SelectChip(mask) MACROS{ DATAFLASH_CHIPCS_PORT = ((DATAFLASH_CHIPCS_PORT \
- & ~DATAFLASH_CHIPCS_MASK) | mask); }MACROE
+ & ~DATAFLASH_CHIPCS_MASK) | (mask)); }MACROE
#define Dataflash_DeselectChip() Dataflash_SelectChip(DATAFLASH_NO_CHIP)
#endif