* Fix pipeline (#2860)

fix action

* ATA-Trim support (#2864)

Fix issues with the SD-Card initialization

* Update Changelog.md

---------

Co-authored-by: michael <Heinrich-Tuning@web.de>
This commit is contained in:
CaCO3
2024-02-09 14:00:12 +01:00
committed by GitHub
parent 019069cd16
commit 8d6f731d5a
45 changed files with 824 additions and 30695 deletions

View File

@@ -27,12 +27,10 @@ extern "C" {
#include <esp_timer.h>
#include "../../include/defines.h"
#include "ClassLogFile.h"
//#include "esp_vfs_fat.h"
#include "esp_vfs_fat_mh.h"
#include "sdmmc_common_mh.h"
#include "esp_vfs_fat.h"
#include "../sdmmc_common.h"
static const char* TAG = "HELPER";
@@ -42,7 +40,7 @@ unsigned int systemStatus = 0;
sdmmc_cid_t SDCardCid;
sdmmc_csd_t SDCardCsd;
bool SDCardIsMMC;
// #define DEBUG_DETAIL_ON
@@ -141,6 +139,7 @@ string getSDCardPartitionAllocationSize(){
void SaveSDCardInfo(sdmmc_card_t* card) {
SDCardCid = card->cid;
SDCardCsd = card->csd;
SDCardIsMMC = card->is_mmc;
}
@@ -860,7 +859,7 @@ struct SDCard_Manufacturer_database mmc_database[] = {
/* Parse SD Card Manufacturer Database */
string SDCardParseManufacturerIDs(int id)
{
if (card_is_mmc)
if (SDCardIsMMC)
{
unsigned int id_cnt = sizeof(mmc_database) / sizeof(struct SDCard_Manufacturer_database);
string ret_val = "";