Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL

Dependencies:   mbed

Revision:
13:f18864dd2706
Parent:
11:01dcfb29fbc4
Child:
18:78e982f31c6b
--- a/inc/lut.h	Sat Dec 08 01:53:36 2018 +0000
+++ b/inc/lut.h	Sat Dec 08 02:02:25 2018 +0000
@@ -33,7 +33,8 @@
 #include "parameters.h"
 
 #define MAX_LUT_ENTRIES 1024
-const unsigned int LUT_SCALE_FACTOR = ADC_MAX_VALUE/MAX_LUT_ENTRIES;
+#define LUT_MAX_ADC ADC_MAX_VALUE/2
+const unsigned int LUT_SCALE_FACTOR = LUT_MAX_ADC/MAX_LUT_ENTRIES;
 
 unsigned int getLUT_binCode(unsigned short);
 unsigned int getLUT_thermCode(unsigned short);