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:
parent
d771099f62
commit
9add0d100d
3 changed files with 19 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue