mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-27 19:12:40 +00:00
update firmware source code to v0.18 (#9)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user