diff --git a/Changelog.txt b/Changelog.txt index e4976f267..57cb70608 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,8 @@ +Release 16.12.1 (pending) +========================== + +- Fix abs() overload for mcu lms7002m calibrations + Release 16.12.0 (2016-12-31) ========================== diff --git a/mcu_program/common_src/lms7002m_calibrations.c b/mcu_program/common_src/lms7002m_calibrations.c index 10b13518b..f2c3386e6 100644 --- a/mcu_program/common_src/lms7002m_calibrations.c +++ b/mcu_program/common_src/lms7002m_calibrations.c @@ -65,7 +65,7 @@ static uint8_t toDCOffset(const int8_t offset) { if(offset >= 0) return offset; - return abs(offset) | 0x40; + return (uint8_t)(abs((int)offset) | 0x40); } static void FlipRisingEdge(const uint16_t addr, const uint8_t bits)