diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-04-09 12:45:49 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-04-09 12:45:49 +0000 |
commit | 9add0d100d21ea0eed8ad7d867938268cb9d06b4 (patch) | |
tree | 07545e2cbe4b74cda5c837d69e1111a4180805e4 /LUFA/Drivers/Board/Temperature.c | |
parent | d771099f62e7e83f7360b59fe6193d095c741666 (diff) | |
download | lufa-9add0d100d21ea0eed8ad7d867938268cb9d06b4.tar.gz lufa-9add0d100d21ea0eed8ad7d867938268cb9d06b4.tar.bz2 lufa-9add0d100d21ea0eed8ad7d867938268cb9d06b4.zip |
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.
Diffstat (limited to 'LUFA/Drivers/Board/Temperature.c')
-rw-r--r-- | LUFA/Drivers/Board/Temperature.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/Board/Temperature.c b/LUFA/Drivers/Board/Temperature.c index 44316e74c..f465add49 100644 --- a/LUFA/Drivers/Board/Temperature.c +++ b/LUFA/Drivers/Board/Temperature.c @@ -28,8 +28,11 @@ this software. */ +#define __INCLUDE_FROM_TEMPERATURE_C #include "Temperature.h" +#if defined(TEMPERATURE_SENSOR_DRIVER_COMPATIBLE) + static const uint16_t PROGMEM Temperature_Lookup[TEMP_TABLE_SIZE] = { 0x3B4, 0x3B0, 0x3AB, 0x3A6, 0x3A0, 0x39A, 0x394, 0x38E, 0x388, 0x381, 0x37A, 0x373, @@ -60,3 +63,4 @@ int8_t Temperature_GetTemperature(void) return TEMP_MAX_TEMP; } +#endif |