459b4434b1
ptype of ((int32_t)0 * (uint32_t)0) is (unsigned). "i" counter was declared unsigned to not make comparision with "unsigned char" in for loop. This resulted in calculation in average to be implicitly casted to unsigned, and when negative number was added to it, it turned into huge value. Change type of "i" to signed, and just cast (unsigned char) to (int) to fix this. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> |
||
---|---|---|
.. | ||
ad5410.c | ||
adc.c | ||
ads1242.c | ||
ads1255.c | ||
ads7828.c | ||
CMakeLists.txt | ||
comp.c | ||
dac7554.c | ||
dac7571.c | ||
dac.c | ||
hx711.c | ||
Kconfig | ||
lmp92001.c | ||
ltc1867l.c | ||
Make.defs | ||
max1161x.c | ||
mcp48xx.c | ||
opamp.c | ||
pga11x.c |