Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: inc/lut.h
- 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);