diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/button.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 8acae01006..cc9f0fa18d 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -951,15 +951,3 @@ void button_clear_queue(void) { queue_clear(&button_queue); } - -#ifdef HAVE_HEADPHONE_DETECTION -bool headphones_inserted(void) -{ -#if (CONFIG_KEYPAD==IPOD_3G_PAD) - return (GPIOB_INPUT_VAL & 0x10)?true:false; -#elif (CONFIG_KEYPAD==IPOD_4G_PAD) - return (GPIOA_INPUT_VAL & 0x80)?true:false; -#endif -} -#endif - |