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

Added mul1000


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2201 b32b6428-25c9-4566-ad07-03861ab6144f
parent fdbffb2e
No related branches found
No related tags found
No related merge requests found
......@@ -29,10 +29,16 @@ def set_(attribute,dpt,data):
if val!=None:
attribute.value = val
def mul1000_(attribute,dpt,data):
val = dpts.decode[dpt](data)
if val!=None:
attribute.value = round(val * 1000)
funct = {
"bool" : bool_,
"bool_inv" : bool_inv,
"on_off" : on_off,
"round" : round_,
"set" : set_,
"on_off" : on_off,
"mul1000" : mul1000_,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment