From 91e0ff8b0327f2e8d1c3851e2cd5a7784ea2f36b Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 2 Jul 2020 00:01:20 +0930 Subject: Functionality: binary display inputs can be selected and deleted now --- BinaryDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BinaryDisplay.cpp') diff --git a/BinaryDisplay.cpp b/BinaryDisplay.cpp index f2d6d69..4b51703 100644 --- a/BinaryDisplay.cpp +++ b/BinaryDisplay.cpp @@ -29,6 +29,10 @@ BinaryDisplay::update_state() sum_value |= 1 << 6; if (input7 && input7->get_object_type() == Object::GATE && input7->get_output_state()) sum_value |= 1 << 7; + if (sum_value > 0) + output_state = true; + else + output_state = false; } void -- cgit v1.2.3