update firmware source code to v0.18 (#9)

This commit is contained in:
Forairaaaaa
2026-03-25 11:11:14 +08:00
committed by GitHub
parent 5001b7081b
commit 605b575fcc
123 changed files with 24590 additions and 1899 deletions
+3 -3
View File
@@ -23,7 +23,7 @@
#include <espnow_utils.h>
#include <esp_check.h>
static const std::string _tag = "HAL-EspNow";
static const std::string_view _tag = "HAL-EspNow";
static EventGroupHandle_t s_wifi_event_group = NULL;
static const int WIFI_CONNECTED_BIT = BIT0;
@@ -60,7 +60,7 @@ static void _wifi_init(int channel = 1)
// ESP_ERROR_CHECK(nvs_flash_init());
// ESP_ERROR_CHECK(esp_netif_init());
// ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(esp_event_loop_create_default());
esp_netif_t* sta_netif = esp_netif_create_default_wifi_sta();
assert(sta_netif);
@@ -164,7 +164,7 @@ void Hal::setLaserEnabled(bool enabled)
return;
}
const gpio_num_t laser_pin = GPIO_NUM_9;
const gpio_num_t laser_pin = GPIO_NUM_2;
if (!is_inited) {
gpio_reset_pin(laser_pin);