diff --git a/code/components/jomjol_helper/Helper.cpp b/code/components/jomjol_helper/Helper.cpp index fd50953a..66d95853 100644 --- a/code/components/jomjol_helper/Helper.cpp +++ b/code/components/jomjol_helper/Helper.cpp @@ -90,7 +90,7 @@ string getSDCardPartitionSize(){ return std::to_string(tot_sect); } -string getSDCardFreeParitionSpace(){ +string getSDCardFreePartitionSpace(){ FATFS *fs; uint32_t fre_clust, fre_sect; @@ -103,7 +103,7 @@ string getSDCardFreeParitionSpace(){ return std::to_string(fre_sect); } -string getSDCardParitionAllocationSize(){ +string getSDCardPartitionAllocationSize(){ FATFS *fs; uint32_t fre_clust, allocation_size; @@ -111,7 +111,7 @@ string getSDCardParitionAllocationSize(){ f_getfree("0:", (DWORD *)&fre_clust, &fs); 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); } diff --git a/code/components/jomjol_helper/Helper.h b/code/components/jomjol_helper/Helper.h index b530f446..8d7c2cf0 100644 --- a/code/components/jomjol_helper/Helper.h +++ b/code/components/jomjol_helper/Helper.h @@ -48,8 +48,8 @@ string getESPHeapInfo(); ///////////////////////////// string getSDCardPartitionSize(); -string getSDCardFreeParitionSpace(); -string getSDCardParitionAllocationSize(); +string getSDCardFreePartitionSpace(); +string getSDCardPartitionAllocationSize(); void SaveSDCardInfo(sdmmc_card_t* card); string SDCardParseManufacturerIDs(int); diff --git a/code/main/server_main.cpp b/code/main/server_main.cpp index 28e78c8c..3de34933 100644 --- a/code/main/server_main.cpp +++ b/code/main/server_main.cpp @@ -145,7 +145,7 @@ esp_err_t info_get_handler(httpd_req_t *req) return ESP_OK; } - if (_task.compare("SDCardFreeParitionSpace") == 0) + if (_task.compare("SDCardFreePartitionSpace") == 0) { std::string zw; zw = getSDCardFreeParitionSpace(); @@ -154,10 +154,10 @@ esp_err_t info_get_handler(httpd_req_t *req) return ESP_OK; } - if (_task.compare("SDCardParitionAllocationSize") == 0) + if (_task.compare("SDCardPartitionAllocationSize") == 0) { std::string zw; - zw = getSDCardParitionAllocationSize(); + zw = getSDCardPartitionAllocationSize(); httpd_resp_sendstr_chunk(req, zw.c_str()); httpd_resp_sendstr_chunk(req, NULL); return ESP_OK; diff --git a/sd-card/html/info.html b/sd-card/html/info.html index 4beda452..7dbd7ee1 100644 --- a/sd-card/html/info.html +++ b/sd-card/html/info.html @@ -137,7 +137,7 @@ div {
- +