Commit 3c951dfc authored by Tristan Gingold's avatar Tristan Gingold

ramps: do not keep control word anymore

parent 6784f351
......@@ -4691,8 +4691,8 @@ bmctrl (struct libwr2rf_dev *dev, int argc, char **argv)
cnt = 0;
printf("New Ramp LHCPilot\n");
}
ftw_h1 = ramp_lhcpilot[cnt].ftw_h1;
control = ramp_lhcpilot[cnt].ctrl;
ftw_h1 = ramp_lhcpilot[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
case 4:
......@@ -4700,8 +4700,8 @@ bmctrl (struct libwr2rf_dev *dev, int argc, char **argv)
cnt = 0;
printf("New Ramp sftpro2\n");
}
ftw_h1 = ramp_sftpro2[cnt].ftw_h1;
control = ramp_sftpro2[cnt].ctrl;
ftw_h1 = ramp_sftpro2[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
case 5:
......@@ -4709,10 +4709,8 @@ bmctrl (struct libwr2rf_dev *dev, int argc, char **argv)
cnt = 1;
printf("New Ramp fast sftpro2\n");
}
ftw_h1 = ramp_fast_sftpro2[cnt].ftw_h1;
control = ramp_fast_sftpro2[cnt].ctrl;
if (cnt == 0)
printf("control=%08x\n", control);
ftw_h1 = ramp_fast_sftpro2[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
case 6:
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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