diff --git a/main.c b/main.c index 391ad5f..fa9cacd 100644 --- a/main.c +++ b/main.c @@ -59,6 +59,16 @@ pthread_cond_wait(&isr_cond, &isr_mtx); } printf("Pressed %d\n", pin_pressed); + switch(pin_pressed) { + case PLAYPAUSE_PIN: + mpd_send_toggle_pause(conn); + break; + case FASTFORWARD_PIN: + mpd_send_next(conn); + break; + default: + break; + } pin_pressed = 0; pthread_mutex_unlock(&isr_mtx); }