diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-07 20:36:32 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-06-11 01:09:51 (GMT) |
| commit | e05cdb375c1cf44d8443a88aa18ab61990f93a32 (patch) | |
| tree | c45c0f18f83d32aa2d03f992bc79cc301bc5dadf /src/displayapp/screens/Calculator.h | |
| parent | cfb04a6609b013c2c5547d8b404b7ecfaaaf8259 (diff) | |
Calculator: bugfixes, reduce binary size
Use statically-allocated stacks.
Fixes:
* Display correctly decimal parts starting with zero, such as 0.09
* Handle correctly expressions like '-(5+11)'=-16 or '3*-(5+11)'=-48
Diffstat (limited to 'src/displayapp/screens/Calculator.h')
| -rw-r--r-- | src/displayapp/screens/Calculator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/Calculator.h b/src/displayapp/screens/Calculator.h index 25c4456..7b1e49b 100644 --- a/src/displayapp/screens/Calculator.h +++ b/src/displayapp/screens/Calculator.h @@ -27,7 +27,8 @@ namespace Pinetime { char text[31]; uint8_t position = 0; - void eval(); + void Eval(); + void Reset(); Controllers::MotorController& motorController; }; |
