smallneuron 2.4.16__tar.gz → 2.4.17__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.16/src/smallneuron.egg-info → smallneuron-2.4.17}/PKG-INFO +1 -1
- {smallneuron-2.4.16 → smallneuron-2.4.17}/pyproject.toml +1 -1
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/smallneuron.py +6 -1
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/sninput.py +5 -5
- {smallneuron-2.4.16 → smallneuron-2.4.17/src/smallneuron.egg-info}/PKG-INFO +1 -1
- {smallneuron-2.4.16 → smallneuron-2.4.17}/.gitignore +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/LICENSE +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/README.md +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/example.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/setup.cfg +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/__init__.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/build +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/gpio_h3.c +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/gpio_h3.h +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/gpio_h3.so +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/logger.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/sndummy.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/sngpio.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/snmqtt.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/snserial.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/sntimer.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron/snwatcher.py +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron.egg-info/top_level.txt +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron_pelainux.egg-info/PKG-INFO +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron_pelainux.egg-info/SOURCES.txt +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron_pelainux.egg-info/dependency_links.txt +0 -0
- {smallneuron-2.4.16 → smallneuron-2.4.17}/src/smallneuron_pelainux.egg-info/top_level.txt +0 -0
|
@@ -191,7 +191,12 @@ class EventManager:
|
|
|
191
191
|
tooltip = 'labeltooltip="' + ttfmt(desc) + '" tooltip="' + ttfmt(desc) + '"'
|
|
192
192
|
|
|
193
193
|
if bold_event == event and state_from == self.prevState and state_to == self.currentState:
|
|
194
|
-
args
|
|
194
|
+
args="ERR"
|
|
195
|
+
try :
|
|
196
|
+
args = " " + json.dumps(self.currentArgs).replace('"', '\\"')
|
|
197
|
+
except:
|
|
198
|
+
pass
|
|
199
|
+
|
|
195
200
|
f.write(
|
|
196
201
|
'"%s" -> "%s" [ label = "%s" fontcolor="red" %s ]\n'
|
|
197
202
|
% (state_from, state_to, event + args, tooltip)
|
|
@@ -55,9 +55,9 @@ class SnInput:
|
|
|
55
55
|
|
|
56
56
|
#log.debug("SnInput read pid:", threading.get_native_id())
|
|
57
57
|
while True:
|
|
58
|
-
log.debug("open")
|
|
58
|
+
#log.debug("open")
|
|
59
59
|
with open(FIFO) as fifo:
|
|
60
|
-
log.debug("open")
|
|
60
|
+
#log.debug("open")
|
|
61
61
|
data = fifo.read()
|
|
62
62
|
log.debug("read:", data)
|
|
63
63
|
if len(data) != 0:
|
|
@@ -66,11 +66,11 @@ class SnInput:
|
|
|
66
66
|
data = data.strip()
|
|
67
67
|
p = data.find(" ")
|
|
68
68
|
if p == -1:
|
|
69
|
-
log.info("SnInput event:", data)
|
|
69
|
+
#log.info("SnInput event:", data)
|
|
70
70
|
self.eventManager.putEvent(data)
|
|
71
71
|
else:
|
|
72
|
-
log.debug("SnInput event:",data[:p])
|
|
73
|
-
log.debug("SnInput args:",data[p:])
|
|
72
|
+
#log.debug("SnInput event:",data[:p])
|
|
73
|
+
#log.debug("SnInput args:",data[p:])
|
|
74
74
|
try:
|
|
75
75
|
args = json.loads(data[p:])
|
|
76
76
|
self.eventManager.putEvent(data[:p], args)
|
|
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.16 → smallneuron-2.4.17}/src/smallneuron_pelainux.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|