Name adjustment

This commit is contained in:
Slider0007
2022-10-22 20:27:21 +02:00
parent f15b1e5dfc
commit c2b89dd199
4 changed files with 9 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ string getSDCardPartitionSize(){
return std::to_string(tot_sect); return std::to_string(tot_sect);
} }
string getSDCardFreeParitionSpace(){ string getSDCardFreePartitionSpace(){
FATFS *fs; FATFS *fs;
uint32_t fre_clust, fre_sect; uint32_t fre_clust, fre_sect;
@@ -103,7 +103,7 @@ string getSDCardFreeParitionSpace(){
return std::to_string(fre_sect); return std::to_string(fre_sect);
} }
string getSDCardParitionAllocationSize(){ string getSDCardPartitionAllocationSize(){
FATFS *fs; FATFS *fs;
uint32_t fre_clust, allocation_size; uint32_t fre_clust, allocation_size;
@@ -111,7 +111,7 @@ string getSDCardParitionAllocationSize(){
f_getfree("0:", (DWORD *)&fre_clust, &fs); f_getfree("0:", (DWORD *)&fre_clust, &fs);
allocation_size = fs->ssize; allocation_size = fs->ssize;
printf("SD Card Parition Allocation Size (bytes): %d)\n", allocation_size); printf("SD Card Partition Allocation Size (bytes): %d)\n", allocation_size);
return std::to_string(allocation_size); return std::to_string(allocation_size);
} }

View File

@@ -48,8 +48,8 @@ string getESPHeapInfo();
///////////////////////////// /////////////////////////////
string getSDCardPartitionSize(); string getSDCardPartitionSize();
string getSDCardFreeParitionSpace(); string getSDCardFreePartitionSpace();
string getSDCardParitionAllocationSize(); string getSDCardPartitionAllocationSize();
void SaveSDCardInfo(sdmmc_card_t* card); void SaveSDCardInfo(sdmmc_card_t* card);
string SDCardParseManufacturerIDs(int); string SDCardParseManufacturerIDs(int);

View File

@@ -145,7 +145,7 @@ esp_err_t info_get_handler(httpd_req_t *req)
return ESP_OK; return ESP_OK;
} }
if (_task.compare("SDCardFreeParitionSpace") == 0) if (_task.compare("SDCardFreePartitionSpace") == 0)
{ {
std::string zw; std::string zw;
zw = getSDCardFreeParitionSpace(); zw = getSDCardFreeParitionSpace();
@@ -154,10 +154,10 @@ esp_err_t info_get_handler(httpd_req_t *req)
return ESP_OK; return ESP_OK;
} }
if (_task.compare("SDCardParitionAllocationSize") == 0) if (_task.compare("SDCardPartitionAllocationSize") == 0)
{ {
std::string zw; std::string zw;
zw = getSDCardParitionAllocationSize(); zw = getSDCardPartitionAllocationSize();
httpd_resp_sendstr_chunk(req, zw.c_str()); httpd_resp_sendstr_chunk(req, zw.c_str());
httpd_resp_sendstr_chunk(req, NULL); httpd_resp_sendstr_chunk(req, NULL);
return ESP_OK; return ESP_OK;

View File

@@ -137,7 +137,7 @@ div {
</td> </td>
<td> <td>
<div id="SDFreeParitionSpace"> <div id="SDFreeParitionSpace">
<object data="/version?type=SDCardFreeParitionSpace"></object> <object data="/version?type=SDCardFreePartitionSpace"></object>
</div> </div>
</td> </td>
</tr> </tr>