[HAL] fix bug when writing tx_calibration file.
The writing must be done by the first LPDC-supporting port after all the LPDC-supporting ports have been calibrated. Thus, this must be done in the new state HAL_PORT_TX_SETUP_STATE_WAIT_OTHER_PORTS and only the first port. Otherwise, we have problem when looping through all the supporting ports. In particular, the writing must be done for all LPDC-supporting ports, if we start looping on port N (by ++pointer), then we will not cover all ports, unless we loop up (++) and (--) down.
Showing
Please
register
or
sign in
to comment