From f52601d4fff870a863b6352296ee0a24d5542c6a Mon Sep 17 00:00:00 2001 From: charlie Date: Sun, 5 Mar 2017 21:27:29 +0100 Subject: [PATCH] Push --- src/components/c4040.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/c4040.cpp b/src/components/c4040.cpp index 919f3de..1e93b95 100644 --- a/src/components/c4040.cpp +++ b/src/components/c4040.cpp @@ -33,6 +33,13 @@ namespace nts pin_num_this--; if (this->pins[pin_num_this].getMode() == Pin::I) return (this->pins[pin_num_this].compute()); + if (pin_num_this == 2) + { + if (this->value == 16) + return (TRUE); + else + return (FALSE); + } Tristate C = this->pins[9].compute(); Tristate R = this->pins[10].compute(); if (C == UNDEFINED || R == UNDEFINED)