This commit is contained in:
sherlock 2025-10-29 12:28:30 +05:30
parent 6a914a6eaa
commit 8c9b2bc012

View file

@ -425,6 +425,12 @@ int main(void) {
result_displayed = 0;
display_status();
}
// Reset debounce after operator is processed
stable = 0;
last_key = 0xFF;
delay(500000); // Delay to let user release the key
} else {
// DIGIT INPUT MODE
if(is_valid_digit(key)) {
@ -435,11 +441,11 @@ int main(void) {
if(input_num < -32768)
input_num = -32768;
display_status();
}
}
stable = 5; // Prevent repeated triggers
}
}
}
// ===== STATE MACHINE DISPLAY ON 7-SEGMENT =====