diff options
Diffstat (limited to 'devices/simple_dev')
| -rwxr-xr-x | devices/simple_dev/run.sh | 2 | ||||
| -rw-r--r-- | devices/simple_dev/simple_dev.cpp | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/devices/simple_dev/run.sh b/devices/simple_dev/run.sh index 5377581..782822f 100755 --- a/devices/simple_dev/run.sh +++ b/devices/simple_dev/run.sh @@ -4,7 +4,7 @@ # # author: Manuel Traut <manut@mecka.net> -LD_LIBRARY_PATH=../../io/lib:../../common:../../manager/lib \ +LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../io/lib:../../common:../../manager/lib \ ./distrio_simple_dev \ -ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService \ $@ diff --git a/devices/simple_dev/simple_dev.cpp b/devices/simple_dev/simple_dev.cpp index fc79d77..7f32eb2 100644 --- a/devices/simple_dev/simple_dev.cpp +++ b/devices/simple_dev/simple_dev.cpp @@ -77,13 +77,19 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) goto out; } + + dev->huhu_pin->set (); + sleep (1); + dev->huhu_pin->reset (); + +/* try { dev->huhu_pin->register_callback ( (Distrio::Device_ptr) dev, Distrio::TRIGGER_FALLING_EDGE); } catch (::CORBA::Exception &ex) { std::cerr << "register cb failed" << std::endl; } - +*/ dev->function_list.length (2); dev->function_list[0].id = ::Distrio::DEV_START; |
