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.

This commit is contained in:
Dean Camera 2012-04-09 12:45:49 +00:00
parent d771099f62
commit 9add0d100d
3 changed files with 19 additions and 7 deletions

View file

@ -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"