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