only test purpose not official
Diff: glibr.cpp
- Revision:
- 5:20566fe6ed51
- Parent:
- 3:8e5d2639d7bf
--- a/glibr.cpp Sat Dec 23 16:56:44 2017 +0000 +++ b/glibr.cpp Fri Feb 07 00:52:53 2020 +0000 @@ -440,7 +440,9 @@ while(1) { /* Wait some time to collect next batch of FIFO data */ - wait(FIFO_PAUSE_TIME); + // by Arai / JH1PJL + /* wait(FIFO_PAUSE_TIME); */ + ThisThread::sleep_for(FIFO_PAUSE_TIME); /* Get the contents of the STATUS register. Is data still valid? */ @@ -524,7 +526,9 @@ } else { /* Determine best guessed gesture and clean up */ - wait(FIFO_PAUSE_TIME); + // by Arai / JH1PJL + /* wait(FIFO_PAUSE_TIME); */ + ThisThread::sleep_for(FIFO_PAUSE_TIME); decodeGesture(); motion = gesture_motion_; #if DEBUG