summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/calculator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index 1630f03877..35ebea6e70 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -1103,10 +1103,12 @@ void basicButtonsProcess(void){
1103 formatResult(); 1103 formatResult();
1104 if (memTemp > MINIMUM) 1104 if (memTemp > MINIMUM)
1105 doAdd(&memTemp, &memTempPower, result, power); 1105 doAdd(&memTemp, &memTempPower, result, power);
1106 else 1106 else {
1107 /* if result is too small and memTemp = 0, 1107 /* if result is too small and memTemp = 0,
1108 doAdd will not add */ 1108 doAdd will not add */
1109 memTemp = result; memTempPower = power; 1109 memTemp = result;
1110 memTempPower = power;
1111 }
1110 calStatus = cal_normal; 1112 calStatus = cal_normal;
1111 break; 1113 break;
1112 1114