1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #13807 from francois-berder/fix-buttons-test

tests: buttons: Fix build failure if BTN0_PIN is not declared
This commit is contained in:
benpicco 2020-04-03 23:38:16 +02:00 committed by GitHub
commit 82e1a62bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);