fix storage for csi

This commit is contained in:
Bob 2025-12-08 16:42:41 -08:00
parent 3d8d6bee80
commit 1461ff95bb
1 changed files with 3 additions and 6 deletions

View File

@ -21,12 +21,9 @@ static const esp_partition_t *s_csi_part = NULL;
static size_t s_csi_offset = 0; // bytes written this run static size_t s_csi_offset = 0; // bytes written this run
static uint32_t s_csi_seq = 0; static uint32_t s_csi_seq = 0;
esp_err_t csi_log_init(void) esp_err_t csi_log_init(void) {
{ s_csi_part = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, \
s_csi_part = esp_partition_find_first( ESP_PARTITION_SUBTYPE_DATA_SPIFFS, "storage");
ESP_PARTITION_TYPE_DATA,
0x40, // subtype from partitions.csv
"storage");
if (!s_csi_part) { if (!s_csi_part) {
ESP_LOGE(TAG, "csi_log partition not found"); ESP_LOGE(TAG, "csi_log partition not found");