repositories
/
msc-thesis1617.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edab4b7
)
update connectDevice functionality
author
Mart Lubbers
<mart@martlubbers.net>
Sun, 2 Jul 2017 14:30:41 +0000
(16:30 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Sun, 2 Jul 2017 14:30:41 +0000
(16:30 +0200)
arch.communication.tex
patch
|
blob
|
history
diff --git
a/arch.communication.tex
b/arch.communication.tex
index
1e9b4b6
..
9082fd5
100644
(file)
--- a/
arch.communication.tex
+++ b/
arch.communication.tex
@@
-71,7
+71,8
@@
connectDevice procFun device = set ([], [], False) ch
>>| appendTopLevelTask 'DM'.newMap True
( procFun device ch -||- catchAll (getSynFun device.deviceData ch) errHdl)
>>= \tid->upd (\d->{d&deviceTask=Just tid,deviceError=Nothing}) (deviceShare device)
- >>| upd (\(r,s,ss)->(r,s++[MTSpec],ss)) ch
+ >>| set (r,[MTSpec],ss) ch
+ >>| treturn device
where
errHdl e = upd (\d->{d & deviceTask=Nothing, deviceError=Just e}) (deviceShare device) @! ()
ch = channels device