mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests: buttons: Fix build failure if BTN0_PIN is not declared
On some boards, button 0 does not exist so BTN0_PIN is not defined, but these boards may define other buttons. Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
This commit is contained in:
parent
b87be4bd6e
commit
d45196e28d
@ -41,7 +41,7 @@
|
||||
#define BTN3_INT_FLANK GPIO_FALLING
|
||||
#endif
|
||||
|
||||
#ifdef BTN0_PIN /* assuming that first button is always BTN0 */
|
||||
#if defined (BTN0_PIN) || defined (BTN1_PIN) || defined (BTN2_PIN) || defined (BTN3_PIN)
|
||||
static void cb(void *arg)
|
||||
{
|
||||
printf("Pressed BTN%d\n", (int)arg);
|
||||
|
Loading…
Reference in New Issue
Block a user