Update calc.c
Pressing PI (Shift ÷) should only lift the stack if the previous operation would allow it.
This commit is contained in:
parent
25db3835e0
commit
d6e16f8bb9
@ -128,7 +128,9 @@ void process_cmd(char cmd){
|
||||
//////////
|
||||
case '/':{
|
||||
if (IsShiftedUp){
|
||||
if (NoLift != 1){
|
||||
StackPtr--;
|
||||
}
|
||||
pi_decn();
|
||||
copy_decn(&stack(STACK_X), &AccDecn);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user