aboutsummaryrefslogtreecommitdiffstats
path: root/examples/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/manager.c')
-rw-r--r--examples/manager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/manager.c b/examples/manager.c
index 74bddbd..d44acfa 100644
--- a/examples/manager.c
+++ b/examples/manager.c
@@ -29,7 +29,7 @@ int gotAttach(CPhidgetHandle phid, void *ptr) {
CPhidget_getDeviceLabel(phid, &label);
CPhidget_getSerialNumber(phid, &serial);
CPhidget_getDeviceVersion(phid, &version);
- CPhidget_getDeviceType(phid, &id);
+ CPhidget_getDeviceName(phid, &id);
printf("Device Added: %s, Serial: %d, Version: %d Label: %s\n",id,serial,version,label);
return 0;
@@ -42,7 +42,7 @@ int gotDetach(CPhidgetHandle phid, void *ptr) {
//print out some info
CPhidget_getSerialNumber(phid, &serial);
CPhidget_getDeviceVersion(phid, &version);
- CPhidget_getDeviceType((CPhidgetHandle)phid,(const char **)&id);
+ CPhidget_getDeviceName((CPhidgetHandle)phid,(const char **)&id);
printf("Device Removed: %s, Serial: %d, Version: %d\n",id,serial,version);
return 0;
@@ -53,12 +53,13 @@ int main()
{
CPhidgetManagerHandle phidm;
- CPhidget_enableLogging(PHIDGET_LOG_VERBOSE, NULL);
+ //CPhidget_enableLogging(PHIDGET_LOG_VERBOSE, NULL);
CPhidgetManager_create(&phidm);
CPhidgetManager_set_OnAttach_Handler(phidm, gotAttach, NULL);
CPhidgetManager_set_OnDetach_Handler(phidm, gotDetach, NULL);
CPhidgetManager_open(phidm);
+ //CPhidgetManager_openRemote(phidm, NULL, NULL);
signal (SIGTERM, sighandler);
signal (SIGINT, sighandler);
'logsubject'>BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04According to its man page, timercmp() is broken on some systems -- applied ↵mzuther1-1/+1 the recommended (and equivalent) change. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04small warning removedmichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1099 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-02-04clear errno after creating the FIFO by Claas Hilbrechtmichael1-0/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f