This commit is contained in:
2020-11-06 17:32:20 +03:00
parent 555dc74086
commit 56223ad67e

View File

@@ -24,7 +24,7 @@
#ifdef ESP_PLATFORM
# include "esp_system.h"
# include "esp_flash.h"
# include "esp_spi_flash.h"
#endif
#define SALT_SIZE 8
@@ -198,7 +198,7 @@ PIVector<PISystemInfo::MountInfo> PISystemInfo::mountInfo(bool ignore_cache) {
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);
m.device = ((chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded SPI flash" : "external SPI flash");
m.space_all = esp_flash_get_size();
m.space_all = esp_flash_get_chip_size();
m.mount_point = "/";
ret << m;
#endif