Ver código fonte

Name adjustment

Slider0007 3 anos atrás
pai
commit
2b810ca32d

+ 3 - 3
code/components/jomjol_helper/Helper.cpp

@@ -92,7 +92,7 @@ string getSDCardPartitionSize(){
 	return std::to_string(tot_sect);
 }
 
-string getSDCardFreeParitionSpace(){
+string getSDCardFreePartitionSpace(){
 	FATFS *fs;
     uint32_t fre_clust, fre_sect;
   
@@ -105,7 +105,7 @@ string getSDCardFreeParitionSpace(){
 	return std::to_string(fre_sect);
 }
 
-string getSDCardParitionAllocationSize(){
+string getSDCardPartitionAllocationSize(){
 	FATFS *fs;
     uint32_t fre_clust, allocation_size;
   
@@ -113,7 +113,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);
 }

+ 2 - 2
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);

+ 3 - 3
code/main/server_main.cpp

@@ -147,7 +147,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();
@@ -156,10 +156,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;        

+ 1 - 1
sd-card/html/info.html

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