mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
only remove the operator if the value is zero
Co-authored-by: SuIông N. <Boteium@users.noreply.github.com>
This commit is contained in:
parent
a3a557fb99
commit
25022004a0
|
@ -199,8 +199,10 @@ void Calculator::HandleInput() {
|
|||
NRF_LOG_INFO(". value: %" PRId64, value);
|
||||
NRF_LOG_INFO(". result: %" PRId64, result);
|
||||
|
||||
operation = ' ';
|
||||
UpdateOperation();
|
||||
if (value == 0) {
|
||||
operation = ' ';
|
||||
UpdateOperation();
|
||||
}
|
||||
break;
|
||||
|
||||
case '=':
|
||||
|
|
Loading…
Reference in a new issue