diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-11 02:33:13 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-06-11 02:34:41 (GMT) |
| commit | cd1ac227279fae842c7bd0ad61cd4434c391ba18 (patch) | |
| tree | f2802bd4ec0f4969faa20d8c0997e3501318b5de | |
| parent | deca6736caf2883fadb39c481d44ede4db5e5563 (diff) | |
Not sure why this improves firmware size, perhaps because of a butterfly effect during compiler optimization.calc-onto-edge
| -rw-r--r-- | src/displayapp/screens/Calculator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/displayapp/screens/Calculator.cpp b/src/displayapp/screens/Calculator.cpp index e05aedd..8e36c1a 100644 --- a/src/displayapp/screens/Calculator.cpp +++ b/src/displayapp/screens/Calculator.cpp @@ -188,7 +188,9 @@ bool Calculator::Eval() { } } - char next = input.pop(); + char next = input.top(); + input.pop(); + switch (next) { case '+': case '-': |
