X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/f1b6ddb7107fd9534cc6a8d6ab2d46f349d9cdb7..72fc4a204de72bfc3b2d62162d2c8ff59dd5803f:/LUFA/Drivers/Board/Temperature.c diff --git a/LUFA/Drivers/Board/Temperature.c b/LUFA/Drivers/Board/Temperature.c index 44316e74c..f6cc2ae6b 100644 --- a/LUFA/Drivers/Board/Temperature.c +++ b/LUFA/Drivers/Board/Temperature.c @@ -18,7 +18,7 @@ advertising or publicity pertaining to distribution of the software without specific, written prior permission. - The author disclaim all warranties with regard to this + The author disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages @@ -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