diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-04-09 12:45:49 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-04-09 12:45:49 +0000 |
| commit | 6fe1978964646b323b93b8b0e121c1334997a291 (patch) | |
| tree | 07545e2cbe4b74cda5c837d69e1111a4180805e4 /LUFA/Drivers/Peripheral/AVR8 | |
| parent | 67db38bdca052e02e919849719701691d0d1d1b2 (diff) | |
Ensure Temperature.c and TWI_AVR8.c can be compiled silently in projects with non-supported hardware - produce errors only if the user application includes the module header files.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2152 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8')
| -rw-r--r-- | LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c index 45477fd5..495744b4 100644 --- a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c +++ b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c @@ -29,7 +29,7 @@ */ #include "../../../Common/Common.h" -#if (ARCH == ARCH_AVR8) +#if (ARCH == ARCH_AVR8) && defined(TWCR) #define __INCLUDE_FROM_TWI_C #include "../TWI.h" |
