]> granicus.if.org Git - esp-idf/commit
phy_init: don’t rewrite valid calibration data
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 7 Feb 2017 07:14:45 +0000 (15:14 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 7 Feb 2017 07:14:45 +0000 (15:14 +0800)
commit777816cb99874b9c7f53ad93365fd5fffbefd364
treeca8d37d6022d810db186522e6089723edc04a551
parentc78aa138b061407c555e8913c0e46ec81a658eb3
phy_init: don’t rewrite valid calibration data

In the default PHY init routine, calibration data is loaded from NVS.
Most of the time the incremental changes to calibration will be fairly
small, so we don’t need to rewrite the existing calibration data stored
in the NVS.

Possible enhancement to be done in the future: expose a function in PHY
library to tell how big was the change in calibration data. If the
change was significant, then calibration data stored in NVS should be
updated.
components/esp32/cpu_start.c