remove unused code

This commit is contained in:
Terrence
2025-02-18 04:42:55 +08:00
parent ade1e3193d
commit db712fa078

View File

@@ -9,7 +9,6 @@
#include "led/single_led.h" #include "led/single_led.h"
#include <esp_log.h> #include <esp_log.h>
#include <esp_spiffs.h>
#include <driver/gpio.h> #include <driver/gpio.h>
#include <driver/i2c_master.h> #include <driver/i2c_master.h>
#include <esp_timer.h> #include <esp_timer.h>
@@ -64,17 +63,6 @@ private:
} }
} }
void MountStorage() {
// Mount the storage partition
esp_vfs_spiffs_conf_t conf = {
.base_path = "/storage",
.partition_label = "storage",
.max_files = 5,
.format_if_mount_failed = true,
};
esp_vfs_spiffs_register(&conf);
}
void Enable4GModule() { void Enable4GModule() {
// Make GPIO HIGH to enable the 4G module // Make GPIO HIGH to enable the 4G module
gpio_config_t ml307_enable_config = { gpio_config_t ml307_enable_config = {
@@ -175,7 +163,6 @@ public:
InitializeCodecI2c(); InitializeCodecI2c();
axp2101_ = new Axp2101(codec_i2c_bus_, AXP2101_I2C_ADDR); axp2101_ = new Axp2101(codec_i2c_bus_, AXP2101_I2C_ADDR);
MountStorage();
Enable4GModule(); Enable4GModule();
InitializeButtons(); InitializeButtons();