summaryrefslogtreecommitdiff
path: root/emulators/gpsim-devel/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gpsim-devel/patches/patch-ab')
-rw-r--r--emulators/gpsim-devel/patches/patch-ab18
1 files changed, 18 insertions, 0 deletions
diff --git a/emulators/gpsim-devel/patches/patch-ab b/emulators/gpsim-devel/patches/patch-ab
new file mode 100644
index 00000000000..28064130c99
--- /dev/null
+++ b/emulators/gpsim-devel/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/11/29 20:51:51 bouyer Exp $
+
+Index: src/stimuli.cc
+===================================================================
+RCS file: /cvsroot/gpsim/src/stimuli.cc,v
+retrieving revision 1.59
+diff -u -r1.59 stimuli.cc
+--- src/stimuli.cc 26 Aug 2004 14:37:03 -0000 1.59
++++ src/stimuli.cc 4 Nov 2004 22:06:02 -0000
+@@ -1325,6 +1325,8 @@
+
+ double IO_open_collector::get_Zth()
+ {
++ if(iop)
++ digital_state = (iop->value.get() & (1<<iobit)) ? true : false;
+ return (driving && !digital_state) ? Zth : ZthIn;
+
+ }