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();
if (memTemp > MINIMUM)
doAdd(&memTemp, &memTempPower, result, power);
else
else {
/* if result is too small and memTemp = 0,
doAdd will not add */
memTemp = result; memTempPower = power;
memTemp = result;
memTempPower = power;
}
calStatus = cal_normal;
break;