Skip to content

Commit 87963dc

Browse files
committed
fix(example): Fixed warnings in sensor example when not used temperature.
1 parent 3265ad6 commit 87963dc

File tree

1 file changed

+2
-0
lines changed
  • examples/display_sensors/main

1 file changed

+2
-0
lines changed

examples/display_sensors/main/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ static lv_obj_t *acc_x_bar, *acc_y_bar, * acc_z_bar;
3232
static lv_obj_t *gyr_x_bar, *gyr_y_bar, * gyr_z_bar;
3333
static lv_style_t bar_style;
3434

35+
#if BSP_CAPS_HUMITURE
3536
static lv_obj_t *chart = NULL;
3637
static lv_chart_series_t *temp_series = NULL;
3738
static lv_chart_series_t *humid_series = NULL;
3839

3940
static void chart_add_value(lv_chart_series_t *series, const int32_t value);
4041
#endif
42+
#endif
4143

4244
static void sensor_event_handler(void *handler_args, esp_event_base_t base, int32_t id, void *event_data)
4345
{

0 commit comments

Comments
 (0)