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:
parent
2f20b3e784
commit
ae7df4d0ac
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue