diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2018-01-04 08:48:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 08:48:40 -0700 |
commit | 98d62e595b90a76ecd6d4f87e95e5cc6af45a4ce (patch) | |
tree | 0ef5325a3494099b7c18c085106486fc5b6368f2 /src/survive.c | |
parent | 1d98830c2b99afc7dfd02ada440acd30652db61b (diff) | |
parent | 499b80ae7b538f8e66f5ec8bfa60c7136a3babf5 (diff) | |
download | libsurvive-98d62e595b90a76ecd6d4f87e95e5cc6af45a4ce.tar.gz libsurvive-98d62e595b90a76ecd6d4f87e95e5cc6af45a4ce.tar.bz2 |
Merge pull request #90 from mwturvey/MakeTrackingGood
Haptic Call Plumbed
Diffstat (limited to 'src/survive.c')
-rwxr-xr-x | src/survive.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/survive.c b/src/survive.c index d3c0918..75c07bf 100755 --- a/src/survive.c +++ b/src/survive.c @@ -60,7 +60,7 @@ static void button_servicer(void * context) // should never happen. indicates failure of code pushing stuff onto // the buttonQueue // if it does happen, it will kill all future button input - printf("ERROR: Unpopulated ButtonQueueEntry!"); + printf("ERROR: Unpopulated ButtonQueueEntry! NextReadIndex=%d\n", ctx->buttonQueue.nextReadIndex); return; } @@ -272,6 +272,17 @@ int survive_send_magic( SurviveContext * ctx, int magic_code, void * data, int d return 0; } +int survive_haptic(SurviveObject * so, uint8_t reserved, uint16_t pulseHigh, uint16_t pulseLow, uint16_t repeatCount) +{ + if (NULL == so || NULL == so->haptic) + { + return -404; + } + + return so->haptic(so, reserved, pulseHigh, pulseLow, repeatCount); +} + + void survive_close( SurviveContext * ctx ) { const char * DriverName; |