Let ESP IDF manage app version
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include "esp_system.h"
 | 
			
		||||
#include "esp_log.h"
 | 
			
		||||
#include "esp_app_desc.h"
 | 
			
		||||
 | 
			
		||||
#include "dev_name.h"
 | 
			
		||||
#include "storage.h"
 | 
			
		||||
@@ -20,7 +21,7 @@ void app_main(void)
 | 
			
		||||
 | 
			
		||||
    system_show_free_memory();
 | 
			
		||||
 | 
			
		||||
    ESP_LOGI(TAG, "SolarEnergy WT32-ETH01 device");
 | 
			
		||||
    ESP_LOGI(TAG, "SolarEnergy WT32-ETH01 device version %s", esp_app_get_description()->version);
 | 
			
		||||
 | 
			
		||||
    // Turn off all relays
 | 
			
		||||
    relays_turn_off_all();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user