diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-05-23 19:06:08 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-05-23 19:06:08 +0800 |
commit | 26f9d9ce2650dd225e011fec49641572f3b85796 (patch) | |
tree | 3f236e2278b038f95d512d062b4e8328d6cfd448 /devicemon.erl | |
parent | 859179718904a1824082fdbbf77192bd1ce762e7 (diff) | |
download | local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.gz local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.bz2 local-26f9d9ce2650dd225e011fec49641572f3b85796.zip |
Global emu debugged
Diffstat (limited to 'devicemon.erl')
-rw-r--r-- | devicemon.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/devicemon.erl b/devicemon.erl index 84c2849..703dca5 100644 --- a/devicemon.erl +++ b/devicemon.erl @@ -86,9 +86,8 @@ deviceloop(Devices) -> deviceloop(Devices) end. -devicemon() -> +devmon() -> register(?MODULE,self()), - spawn(?MODULE,devicepool,[?ADDRANGE]), deviceloop(orddict:new()). getStat(Addr) -> @@ -100,13 +99,13 @@ getStat(Addr) -> error end. -getStaus(Addr) -> +getStatus(Addr) -> case getStat(Addr) of error -> error; - Val -> Val + Val -> ready %% device status multiplexer %% ready | busy end. start() -> - spawn(?MODULE,devicemon,[]).
\ No newline at end of file + spawn(?MODULE,devmon,[]).
\ No newline at end of file |