mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[PSRam] Change log unit to KB to minimize rounding error. (#4872)
Co-authored-by: Your Name <you@example.com>
This commit is contained in:
		| @@ -21,7 +21,7 @@ void PsramComponent::dump_config() { | |||||||
|   ESP_LOGCONFIG(TAG, "  Available: %s", YESNO(available)); |   ESP_LOGCONFIG(TAG, "  Available: %s", YESNO(available)); | ||||||
| #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0) | #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0) | ||||||
|   if (available) { |   if (available) { | ||||||
|     ESP_LOGCONFIG(TAG, "  Size: %d MB", heap_caps_get_total_size(MALLOC_CAP_SPIRAM) / 1024 / 1024); |     ESP_LOGCONFIG(TAG, "  Size: %d KB", heap_caps_get_total_size(MALLOC_CAP_SPIRAM) / 1024); | ||||||
|   } |   } | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user