Skip to content

Commit 1be2f11

Browse files
Enzo Fresehubmartin
Enzo Frese
authored andcommitted
applications: clime: iaq: Add #ifdef to S1 code
1 parent f7ed783 commit 1be2f11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

applications/clime/src/app_iaq.c

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "app_config.h"
88
#include "app_data.h"
9+
#include "app_iaq.h"
910

1011
/* CHESTER includes */
1112
#include <chester/drivers/ctr_s1.h>
@@ -26,6 +27,8 @@
2627

2728
LOG_MODULE_REGISTER(app_iaq, LOG_LEVEL_DBG);
2829

30+
#if defined(CONFIG_SHIELD_CTR_S1)
31+
2932
static const struct device *dev_s1 = DEVICE_DT_GET(DT_NODELABEL(ctr_s1));
3033

3134
enum iaq_led_state {
@@ -182,3 +185,5 @@ int app_iaq_led_task(void)
182185

183186
return 0;
184187
}
188+
189+
#endif /* defined(CONFIG_SHIELD_CTR_S1) */

0 commit comments

Comments
 (0)