esp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user