mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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
This commit is contained in:
commit
0bbc60618b
@ -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));
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -179,4 +179,8 @@ const char* system_get_sdk_version(void)
|
|||||||
return "master";
|
return "master";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* esp_get_idf_version(void)
|
||||||
|
{
|
||||||
|
return IDF_VER;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user