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

- switch to 1 sec delay between 2 pool request (not really sure)

- the first update on TimedDict create a event (even if empty update)

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3000 b32b6428-25c9-4566-ad07-03861ab6144f
parent 5aca564d
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ logger = logging.getLogger(__name__) ...@@ -8,7 +8,7 @@ logger = logging.getLogger(__name__)
# how often we force refresh the devices attributes/description/keyvalues # how often we force refresh the devices attributes/description/keyvalues
REFRESH_RATE = 300 REFRESH_RATE = 300
BOOT_TIMER = 2 BOOT_TIMER = 1
REFRESH_TIMER = 7 REFRESH_TIMER = 7
AUTOWASH_TIMER = 10 AUTOWASH_TIMER = 10
...@@ -31,7 +31,7 @@ class TimedDict(dict): ...@@ -31,7 +31,7 @@ class TimedDict(dict):
self.updated() self.updated()
def update(self,dict_): def update(self,dict_):
changed = False changed = False if self.last_update !=0 else True
if dict_!= self: if dict_!= self:
changed = True changed = True
super().update(dict_) super().update(dict_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment