From cd1ac227279fae842c7bd0ad61cd4434c391ba18 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Sat, 11 Jun 2022 04:33:13 +0200 Subject: Not sure why this improves firmware size, perhaps because of a butterfly effect during compiler optimization. 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 '-': -- cgit v0.10.2