Commit 5fadae42 authored by YimengYe's avatar YimengYe

Solve the bug in sfp data reading.

parent aa3443c6
......@@ -18,7 +18,7 @@ int wrpc_read_calibration_data(struct pp_instance *ppi,
uint32_t *deltaTx, uint32_t *deltaRx, int32_t *fix_alpha,
int32_t *clock_period)
{
int port = atoi(ppi->iface_name[2]);
int port = atoi(&(ppi->iface_name[2]));
struct hal_port_state state;
wrpc_get_port_state(&state, port);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment