summaryrefslogtreecommitdiff
path: root/Gate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Gate.cpp')
-rw-r--r--Gate.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Gate.cpp b/Gate.cpp
index 33313f3..5ebec86 100644
--- a/Gate.cpp
+++ b/Gate.cpp
@@ -73,6 +73,13 @@ void Gate::update_state()
break;
}
+ case PULSE:
+ {
+ if (output_state)
+ output_state = false;
+ break;
+ }
+
case OUTPUT:
{
if (input_gate1 && input_gate1->get_output_state() == true)