Skip to content

Commit 76c19a0

Browse files
committed
fix: compiling errors
1 parent f79506d commit 76c19a0

File tree

7 files changed

+9
-75
lines changed

7 files changed

+9
-75
lines changed

main/boards/electron-bot/movements.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#include "oscillator.h"
77

8-
static const char* TAG = "Movements";
9-
108
Otto::Otto() {
119
is_otto_resting_ = false;
1210
for (int i = 0; i < SERVO_COUNT; i++) {

main/boards/electron-bot/oscillator.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
66
#include <algorithm>
77
#include <cmath>
88

9-
static const char* TAG = "Oscillator";
10-
119
extern unsigned long IRAM_ATTR millis();
1210

13-
static ledc_channel_t next_free_channel = LEDC_CHANNEL_0;
14-
1511
Oscillator::Oscillator(int trim) {
1612
trim_ = trim;
1713
diff_limit_ = 0;

main/boards/lilygo-t-cameraplus-s3/config.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
{
55
"name": "lilygo-t-cameraplus-s3",
66
"sdkconfig_append": [
7-
"CONFIG_SPIRAM_MODE_QUAD=y",
8-
"CONFIG_BOARD_TYPE_LILYGO_T_CAMERAPLUS_S3_V1_0_V1_1=y"
7+
"CONFIG_SPIRAM_MODE_QUAD=y"
98
]
109
},
1110
{
1211
"name": "lilygo-t-cameraplus-s3_v1_2",
1312
"sdkconfig_append": [
14-
"CONFIG_SPIRAM_MODE_QUAD=y",
15-
"CONFIG_BOARD_TYPE_LILYGO_T_CAMERAPLUS_S3_V1_2=y"
13+
"CONFIG_SPIRAM_MODE_QUAD=y"
1614
]
1715
}
1816
]

main/boards/lilygo-t-cameraplus-s3/lilygo-t-cameraplus-s3.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class LilygoTCameraPlusS3Board : public WifiBoard {
130130
}
131131
}
132132

133-
static void touchpad_daemon(void *param) {
133+
static void TouchpadDaemon(void *param) {
134134
vTaskDelay(pdMS_TO_TICKS(2000));
135135
auto &board = (LilygoTCameraPlusS3Board&)Board::GetInstance();
136136
auto touchpad = board.GetTouchpad();
@@ -156,7 +156,7 @@ class LilygoTCameraPlusS3Board : public WifiBoard {
156156
void InitCst816d() {
157157
ESP_LOGI(TAG, "Init CST816x");
158158
cst816d_ = new Cst816x(i2c_bus_, CST816_ADDRESS);
159-
xTaskCreate(touchpad_daemon, "tp", 2048, NULL, 5, NULL);
159+
xTaskCreate(TouchpadDaemon, "tp", 2048, NULL, 5, NULL);
160160
}
161161

162162
void InitSpi() {

main/boards/waveshare-c6-lcd-1.69/power_manager.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include "esp_adc/adc_cali_scheme.h"
1010
#include <math.h>
1111

12-
#define TAG "power_manager"
13-
1412

1513
class PowerManager {
1614
private:
@@ -28,7 +26,7 @@ class PowerManager {
2826
bool calibrated = false;
2927

3028
if (!calibrated) {
31-
ESP_LOGI(TAG, "calibration scheme version is %s", "Curve Fitting");
29+
ESP_LOGI("PowerManager", "calibration scheme version is %s", "Curve Fitting");
3230
adc_cali_curve_fitting_config_t cali_config = {
3331
.unit_id = unit,
3432
.chan = channel,
@@ -43,13 +41,13 @@ class PowerManager {
4341

4442
*out_handle = handle;
4543
if (ret == ESP_OK) {
46-
ESP_LOGI(TAG, "Calibration Success");
44+
ESP_LOGI("PowerManager", "Calibration Success");
4745
}
4846
else if (ret == ESP_ERR_NOT_SUPPORTED || !calibrated) {
49-
ESP_LOGW(TAG, "eFuse not burnt, skip software calibration");
47+
ESP_LOGW("PowerManager", "eFuse not burnt, skip software calibration");
5048
}
5149
else {
52-
ESP_LOGE(TAG, "Invalid arg or no memory");
50+
ESP_LOGE("PowerManager", "Invalid arg or no memory");
5351
}
5452
return calibrated;
5553
}

main/boards/waveshare-s3-touch-lcd-3.5b/custom_lcd_display.cc

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -19,56 +19,6 @@
1919

2020
#define TAG "CustomLcdDisplay"
2121

22-
// Color definitions for dark theme
23-
#define DARK_BACKGROUND_COLOR lv_color_hex(0x121212) // Dark background
24-
#define DARK_TEXT_COLOR lv_color_white() // White text
25-
#define DARK_CHAT_BACKGROUND_COLOR lv_color_hex(0x1E1E1E) // Slightly lighter than background
26-
#define DARK_USER_BUBBLE_COLOR lv_color_hex(0x1A6C37) // Dark green
27-
#define DARK_ASSISTANT_BUBBLE_COLOR lv_color_hex(0x333333) // Dark gray
28-
#define DARK_SYSTEM_BUBBLE_COLOR lv_color_hex(0x2A2A2A) // Medium gray
29-
#define DARK_SYSTEM_TEXT_COLOR lv_color_hex(0xAAAAAA) // Light gray text
30-
#define DARK_BORDER_COLOR lv_color_hex(0x333333) // Dark gray border
31-
#define DARK_LOW_BATTERY_COLOR lv_color_hex(0xFF0000) // Red for dark mode
32-
33-
// Color definitions for light theme
34-
#define LIGHT_BACKGROUND_COLOR lv_color_white() // White background
35-
#define LIGHT_TEXT_COLOR lv_color_black() // Black text
36-
#define LIGHT_CHAT_BACKGROUND_COLOR lv_color_hex(0xE0E0E0) // Light gray background
37-
#define LIGHT_USER_BUBBLE_COLOR lv_color_hex(0x95EC69) // WeChat green
38-
#define LIGHT_ASSISTANT_BUBBLE_COLOR lv_color_white() // White
39-
#define LIGHT_SYSTEM_BUBBLE_COLOR lv_color_hex(0xE0E0E0) // Light gray
40-
#define LIGHT_SYSTEM_TEXT_COLOR lv_color_hex(0x666666) // Dark gray text
41-
#define LIGHT_BORDER_COLOR lv_color_hex(0xE0E0E0) // Light gray border
42-
#define LIGHT_LOW_BATTERY_COLOR lv_color_black() // Black for light mode
43-
44-
// Define dark theme colors
45-
static const ThemeColors DARK_THEME = {
46-
.background = DARK_BACKGROUND_COLOR,
47-
.text = DARK_TEXT_COLOR,
48-
.chat_background = DARK_CHAT_BACKGROUND_COLOR,
49-
.user_bubble = DARK_USER_BUBBLE_COLOR,
50-
.assistant_bubble = DARK_ASSISTANT_BUBBLE_COLOR,
51-
.system_bubble = DARK_SYSTEM_BUBBLE_COLOR,
52-
.system_text = DARK_SYSTEM_TEXT_COLOR,
53-
.border = DARK_BORDER_COLOR,
54-
.low_battery = DARK_LOW_BATTERY_COLOR
55-
};
56-
57-
// Define light theme colors
58-
static const ThemeColors LIGHT_THEME = {
59-
.background = LIGHT_BACKGROUND_COLOR,
60-
.text = LIGHT_TEXT_COLOR,
61-
.chat_background = LIGHT_CHAT_BACKGROUND_COLOR,
62-
.user_bubble = LIGHT_USER_BUBBLE_COLOR,
63-
.assistant_bubble = LIGHT_ASSISTANT_BUBBLE_COLOR,
64-
.system_bubble = LIGHT_SYSTEM_BUBBLE_COLOR,
65-
.system_text = LIGHT_SYSTEM_TEXT_COLOR,
66-
.border = LIGHT_BORDER_COLOR,
67-
.low_battery = LIGHT_LOW_BATTERY_COLOR
68-
};
69-
70-
// Current theme - initialize based on default config
71-
static ThemeColors current_theme = LIGHT_THEME;
7222

7323
static SemaphoreHandle_t trans_done_sem = NULL;
7424
static uint16_t *trans_act;
@@ -331,12 +281,6 @@ CustomLcdDisplay::CustomLcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_p
331281
lv_display_set_offset(display_, offset_x, offset_y);
332282
}
333283

334-
// Update the theme
335-
if (current_theme_name_ == "dark") {
336-
current_theme = DARK_THEME;
337-
} else if (current_theme_name_ == "light") {
338-
current_theme = LIGHT_THEME;
339-
}
340284

341285
SetupUI();
342286
}

main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
78/esp_lcd_nv3023: ~1.0.0
1616
78/esp-wifi-connect: ~2.5.2
1717
78/esp-opus-encoder: ~2.4.1
18-
78/esp-ml307: ~3.3.2
18+
78/esp-ml307: ~3.3.3
1919
78/xiaozhi-fonts: ~1.5.2
2020
espressif/led_strip: ~3.0.1
2121
espressif/esp_codec_dev: ~1.4.0

0 commit comments

Comments
 (0)