1
0
Fork 0
forked from len0rd/rockbox

M+ always copied the power part of the result, even after performing an addition.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5002 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-08-21 22:57:07 +00:00
parent 2f20b3e784
commit ae7df4d0ac

View file

@ -1103,10 +1103,12 @@ void basicButtonsProcess(void){
formatResult(); formatResult();
if (memTemp > MINIMUM) if (memTemp > MINIMUM)
doAdd(&memTemp, &memTempPower, result, power); doAdd(&memTemp, &memTempPower, result, power);
else else {
/* if result is too small and memTemp = 0, /* if result is too small and memTemp = 0,
doAdd will not add */ doAdd will not add */
memTemp = result; memTempPower = power; memTemp = result;
memTempPower = power;
}
calStatus = cal_normal; calStatus = cal_normal;
break; break;