fix arduino ide build error
This commit is contained in:
@@ -120,9 +120,7 @@ uint8_t status;
|
||||
TaskHandle_t playHandle = NULL;
|
||||
TaskHandle_t radioHandle = NULL;
|
||||
|
||||
static lv_obj_t *vad_btn_label;
|
||||
static uint32_t vad_detected_counter = 0;
|
||||
static TaskHandle_t vadTaskHandler;
|
||||
|
||||
bool kbDetected = false;
|
||||
bool touchDetected = false;
|
||||
bool transmissionFlag = true;
|
||||
@@ -419,9 +417,9 @@ bool setupSD()
|
||||
uint32_t cardSize = SD.cardSize() / (1024 * 1024);
|
||||
uint32_t cardTotal = SD.totalBytes() / (1024 * 1024);
|
||||
uint32_t cardUsed = SD.usedBytes() / (1024 * 1024);
|
||||
Serial.printf("SD Card Size: %lu MB\n", cardSize);
|
||||
Serial.printf("Total space: %lu MB\n", cardTotal);
|
||||
Serial.printf("Used space: %lu MB\n", cardUsed);
|
||||
Serial.printf("SD Card Size: %u MB\n", cardSize);
|
||||
Serial.printf("Total space: %u MB\n", cardTotal);
|
||||
Serial.printf("Used space: %u MB\n", cardUsed);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -666,6 +664,8 @@ bool checkKb()
|
||||
}
|
||||
|
||||
#ifdef USE_ESP_VAD
|
||||
static uint32_t vad_detected_counter = 0;
|
||||
static TaskHandle_t vadTaskHandler;
|
||||
void vadTask(void *params)
|
||||
{
|
||||
Serial.println("vadTask(void *params)");
|
||||
@@ -1302,17 +1302,11 @@ static void setupLvgl()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uint8_t buffer[256];
|
||||
|
||||
int getAck(uint8_t *buffer, uint16_t size, uint8_t requestedClass, uint8_t requestedID)
|
||||
{
|
||||
uint16_t ubxFrameCounter = 0;
|
||||
bool ubxFrame = 0;
|
||||
uint32_t startTime = millis();
|
||||
uint16_t needRead;
|
||||
|
||||
|
||||
@@ -45,8 +45,10 @@ enum {
|
||||
};
|
||||
typedef uint8_t lv_menu_builder_variant_t;
|
||||
|
||||
static void back_event_handler(lv_event_t *e);
|
||||
static void switch_handler(lv_event_t *e);
|
||||
|
||||
// static void back_event_handler(lv_event_t *e);
|
||||
// static void switch_handler(lv_event_t *e);
|
||||
|
||||
lv_obj_t *root_page;
|
||||
static lv_obj_t *create_text(lv_obj_t *parent, const char *icon, const char *txt,
|
||||
lv_menu_builder_variant_t builder_variant);
|
||||
@@ -507,6 +509,7 @@ void setupUI(void)
|
||||
lv_timer_handler();
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void back_event_handler(lv_event_t *e)
|
||||
{
|
||||
lv_obj_t *obj = lv_event_get_target(e);
|
||||
@@ -535,6 +538,7 @@ static void switch_handler(lv_event_t *e)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static lv_obj_t *create_text(lv_obj_t *parent, const char *icon, const char *txt,
|
||||
lv_menu_builder_variant_t builder_variant)
|
||||
|
||||
Reference in New Issue
Block a user