Merge pull request #1442 from martinling/example-fix

Correct prototype of flush callback in example code.
This commit is contained in:
Martin Ling
2024-05-02 16:40:04 +01:00
committed by GitHub

View File

@ -363,7 +363,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
* return 0; * return 0;
* } * }
* *
* void flush_callback(hackrf_transfer *transfer) { * void flush_callback(void *ctx, int success) {
* pthread_mutex_lock(&mutex); * pthread_mutex_lock(&mutex);
* pthread_cond_broadcast(&cond); * pthread_cond_broadcast(&cond);
* pthread_mutex_unlock(&mutex); * pthread_mutex_unlock(&mutex);