Skip to content

Commit

Permalink
Fix some error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyu-Zhao committed Sep 4, 2024
1 parent 1493a4c commit bff20fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SquareLine/boards/v9/m5stack_core_2/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: ESP-BSP SquareLine LVGL Example
targets:
- esp32s3
- esp32
dependencies:
idf: ">=5.0"
m5stack_core_s3: ">=1.1.0"
m5stack_core_2: ">=1.0.0"
4 changes: 2 additions & 2 deletions bsp/m5stack_core_2/include/bsp/m5stack_core_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ typedef enum {
BSP_FEATURE_TOUCH,
BSP_FEATURE_SD,
BSP_FEATURE_SPEAKER,
BSP_FEATURE_BAT,
BSP_FEATURE_VIB
BSP_FEATURE_BATTERY,
BSP_FEATURE_VIBRATION
} bsp_feature_t;

esp_err_t bsp_feature_enable(bsp_feature_t feature, bool enable);
Expand Down
4 changes: 2 additions & 2 deletions bsp/m5stack_core_2/m5stack_core_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ esp_err_t bsp_feature_enable(bsp_feature_t feature, bool enable)
TAG, "I2C write failed");
#endif
break;
case BSP_FEATURE_BAT:
case BSP_FEATURE_BATTERY:
#if defined(CONFIG_BSP_PMU_AXP2101)
// Battery detection enabled.
const uint8_t axp_bat_val = enable ? 0x01 : 0x00;
Expand All @@ -135,7 +135,7 @@ esp_err_t bsp_feature_enable(bsp_feature_t feature, bool enable)
1000 / portTICK_PERIOD_MS);
#endif
break;
case BSP_FEATURE_VIB:
case BSP_FEATURE_VIBRATION:
#if defined(CONFIG_BSP_PMU_AXP2101)
const uint8_t dldo1_vol[] = {0x99, 0x1C}; // AXP DLDO1 Voltage set
err |= i2c_master_write_to_device(BSP_I2C_NUM, BSP_AXP2101_ADDR, dldo1_vol, sizeof(dldo1_vol),
Expand Down

0 comments on commit bff20fe

Please sign in to comment.