Merge branch 'feature/add_get_idf_version_api' into 'master'

Add get idf version API

This is same as IDF_VER.

See merge request !435
pull/264/head
Wu Jian Gang 2017-01-18 09:44:53 +08:00
commit 0bbc60618b
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -124,7 +124,12 @@ esp_err_t system_efuse_read_mac(uint8_t mac[6]) __attribute__ ((deprecated));
*/
const char* system_get_sdk_version(void) __attribute__ ((deprecated));
/**
* Get IDF version
*
* @return constant string from IDF_VER
*/
const char* esp_get_idf_version(void);
#ifdef __cplusplus
}

Wyświetl plik

@ -179,4 +179,8 @@ const char* system_get_sdk_version(void)
return "master";
}
const char* esp_get_idf_version(void)
{
return IDF_VER;
}