esp32: fix WiFi timer inaccurate bug

Fix the bug that WiFi timer is not accurate when sleep is on
This commit is contained in:
Liu Zhi Fu
2018-10-11 20:57:15 +08:00
parent 66a54c7abf
commit 1afb8001dd
3 changed files with 33 additions and 1 deletions

View File

@@ -215,6 +215,15 @@ void *wifi_realloc( void *ptr, size_t size );
*/
void *wifi_calloc( size_t n, size_t size );
/**
* @brief Update WiFi MAC time
*
* @param uint32_t time_delta : time duration since the WiFi/BT common clock is disabled
*
* @return Always returns ESP_OK
*/
esp_err_t esp_wifi_internal_update_mac_time( uint32_t time_delta );
#ifdef __cplusplus
}
#endif