smallneuron 2.4.2__tar.gz → 2.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {smallneuron-2.4.2/src/smallneuron.egg-info → smallneuron-2.4.4}/PKG-INFO +1 -1
- {smallneuron-2.4.2 → smallneuron-2.4.4}/pyproject.toml +1 -1
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/smallneuron.py +6 -4
- {smallneuron-2.4.2 → smallneuron-2.4.4/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.4.2 → smallneuron-2.4.4}/.gitignore +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/LICENSE +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/README.md +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/example.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/setup.cfg +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/build +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/sninput.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron/snwatcher.py +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -11,6 +11,7 @@ from datetime import datetime
|
|
|
11
11
|
import sys
|
|
12
12
|
import glob
|
|
13
13
|
import bisect
|
|
14
|
+
import copy
|
|
14
15
|
#
|
|
15
16
|
# Para que funcione el tooltip debe set en formato svg, para generarlo usar:
|
|
16
17
|
#
|
|
@@ -168,11 +169,11 @@ class EventManager:
|
|
|
168
169
|
if node.desc != "":
|
|
169
170
|
style = 'tooltip="' + ttfmt(node.desc) + '" ' + style
|
|
170
171
|
if state == self.currentState:
|
|
171
|
-
style = 'fillcolor="#a00000" '
|
|
172
|
+
style = style+'fillcolor="#a00000" '
|
|
172
173
|
elif state == self.prevState:
|
|
173
|
-
style = 'fillcolor="#fed104" fontcolor=black '
|
|
174
|
+
style = style+'fillcolor="#fed104" fontcolor=black '
|
|
174
175
|
if node._cmd == True:
|
|
175
|
-
style = 'fillcolor="#a0a0a0" '
|
|
176
|
+
style = style+'fillcolor="#a0a0a0" '
|
|
176
177
|
|
|
177
178
|
f.write('"%s" [%s]\n' % (state, style))
|
|
178
179
|
|
|
@@ -308,11 +309,12 @@ class EventManager:
|
|
|
308
309
|
self.currentNode.leave(event,params,node_to.state)
|
|
309
310
|
|
|
310
311
|
# Entramos al nodo nuevo
|
|
312
|
+
original_params=copy.deepcopy(params) # por si enter los modifica y reportar lo que llego
|
|
311
313
|
log.info("[",self.count,"] enter ", node_to.state, params)
|
|
312
314
|
node_to.enter(event, params, self.currentState)
|
|
313
315
|
|
|
314
316
|
# Cambiamos de estado
|
|
315
|
-
self.change_state(event,
|
|
317
|
+
self.change_state(event, original_params, node_to)
|
|
316
318
|
self.printGraph(event)
|
|
317
319
|
elif event in self.cmds:
|
|
318
320
|
log.info("[", self.count, "] Manager new cmd ", event)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smallneuron-2.4.2 → smallneuron-2.4.4}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|