Skip to content
Snippets Groups Projects
Commit 8460afcf authored by Adam Wujek's avatar Adam Wujek
Browse files

[BUG: #337] userspace/wrsw_hal: number ports as 01-12 in tx_phase_cal.conf


Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent 674d8066
Branches
Tags
No related merge requests found
MD5=164571209f47ccec456e0e908befd99e
TX_PHASE_PORT0=308
TX_PHASE_PORT1=497
TX_PHASE_PORT2=300
TX_PHASE_PORT3=1138
TX_PHASE_PORT4=1370
TX_PHASE_PORT5=600
TX_PHASE_PORT6=1219
TX_PHASE_PORT7=321
TX_PHASE_PORT8=763
TX_PHASE_PORT9=780
TX_PHASE_PORT10=1080
TX_PHASE_PORT11=1438
TX_PHASE_PORT01=308
TX_PHASE_PORT02=497
TX_PHASE_PORT03=300
TX_PHASE_PORT04=1138
TX_PHASE_PORT05=1370
TX_PHASE_PORT06=600
TX_PHASE_PORT07=1219
TX_PHASE_PORT08=321
TX_PHASE_PORT09=763
TX_PHASE_PORT10=780
TX_PHASE_PORT11=1080
TX_PHASE_PORT12=1438
......@@ -536,8 +536,8 @@ static void _load_tx_calibration_file(struct hal_port_state * ports) {
{
char key_name[80];
int value;
snprintf(key_name, sizeof(key_name), "TX_PHASE_PORT%d",
ps->hw_index);
snprintf(key_name, sizeof(key_name), "TX_PHASE_PORT%02d",
ps->hw_index + 1);
if(cfg_get_int( _calibrationConfig, key_name, &value) )
{
......@@ -580,7 +580,7 @@ static void _write_tx_calibration_file(struct hal_port_state * ps)
if (_ps->in_use && _ps->lpdc.isSupported)
{
char key_name[80];
snprintf(key_name, sizeof(key_name), "TX_PHASE_PORT%d", _ps->hw_index);
snprintf(key_name, sizeof(key_name), "TX_PHASE_PORT%02d", _ps->hw_index + 1);
cfg_set_int(cfg, key_name, _ps->lpdc.txSetup->measured_phase);
}
_ps++;
......
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