aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-05-19 18:50:59 +0200
committerMichael Buesch <m@bues.ch>2019-05-19 18:52:12 +0200
commitfd75d74613763ce89c5ee7c75cae516b4a41d288 (patch)
tree7829d0d1ebcf660d393d153b92330aa40db39b78
parentd3d160fe9f31ba18d44f1b91c44f489a9e41dc7f (diff)
downloadpyprofibus-master.zip
pyprofibus-master.tar.xz
debounce: Rename ok methodHEADmaster
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--pyprofibus/dp_master.py2
-rw-r--r--pyprofibus/util.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyprofibus/dp_master.py b/pyprofibus/dp_master.py
index 385c36f..0e3d2de 100644
--- a/pyprofibus/dp_master.py
+++ b/pyprofibus/dp_master.py
@@ -541,7 +541,7 @@ class DpMaster(object):
else:
# We received some data.
slave.pendingReq = None
- slave.faultDeb.faultless()
+ slave.faultDeb.ok()
slave.restartStateTimeout()
self._releaseSlave(slave)
else:
diff --git a/pyprofibus/util.py b/pyprofibus/util.py
index d44eff2..ac8783d 100644
--- a/pyprofibus/util.py
+++ b/pyprofibus/util.py
@@ -113,7 +113,7 @@ class FaultDebouncer(object):
return (self.__count + 1) // 2
fault = inc
- faultless = dec
+ ok = dec
def get(self):
return (self.__count + 1) // 2
bues.ch cgit interface