fbswe opened this issue 2 years ago · 2 comments
in core.c: if (cnt) avg = (sum / cnt) << 8;
This code will not work in a 32-bit target environment. correct to if (cnt) avg = do_div(sum, cnt) << 8;
Merged. Thanks for your helpful contribution!
Fixed. Thank you, skbeh!