lorol 4 年之前
父節點
當前提交
f1e5e967c7
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/LITTLEFS.cpp
  2. 1 1
      src/LITTLEFS.h

+ 2 - 1
src/LITTLEFS.cpp

@@ -18,7 +18,8 @@
 //esp_err_t esp_littlefs_format(const char* partition_label);
 //esp_err_t esp_littlefs_info(const char* partition_label, size_t *total_bytes, size_t *used_bytes);
 
-#define LFS_NAME "spiffs"
+//#define LFS_NAME "spiffs"
+static constexpr const char LFS_NAME[] = "spiffs";
 
 #include "vfs_api.h"
 

+ 1 - 1
src/LITTLEFS.h

@@ -1,4 +1,4 @@
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
+// Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.