Skip to content
Snippets Groups Projects
Commit 85952987 authored by jkerdreu's avatar jkerdreu
Browse files

Oups I did it again

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1630 b32b6428-25c9-4566-ad07-03861ab6144f
parent 26fb5536
Branches
No related tags found
No related merge requests found
......@@ -26,6 +26,9 @@ def build_dev(addr,devtype):
def smooth(attribute,value,gap):
old = attribute.value
if not old:
attribute.value = value
if not (old - gap <= value <= old + gap):
attribute.value = value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment