Skip to content

Commit 6f7dc38

Browse files
committed
ifdef guard inclusion of nrf_spim
1 parent 91f16ad commit 6f7dc38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/boards/boards.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424

2525
#include "boards.h"
2626
#include "nrf_pwm.h"
27-
#include "nrf_spim.h"
28-
#include "nrf_clock.h"
2927
#include "app_scheduler.h"
3028
#include "app_timer.h"
3129

30+
#ifdef LED_APA102
31+
#include "nrf_spim.h"
32+
#endif
33+
3234
//--------------------------------------------------------------------+
3335
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
3436
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)