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:
commit
82e1a62bf4
@ -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…
x
Reference in New Issue
Block a user