Commit a10a60f4 authored by Tristan Gingold's avatar Tristan Gingold

ramps: keep only the 32 lsb

parent 3c951dfc
......@@ -4691,7 +4691,7 @@ bmctrl (struct libwr2rf_dev *dev, int argc, char **argv)
cnt = 0;
printf("New Ramp LHCPilot\n");
}
ftw_h1 = ramp_lhcpilot[cnt];
ftw_h1 = 0x1600000000ULL | ramp_lhcpilot[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
......@@ -4700,7 +4700,7 @@ bmctrl (struct libwr2rf_dev *dev, int argc, char **argv)
cnt = 0;
printf("New Ramp sftpro2\n");
}
ftw_h1 = ramp_sftpro2[cnt];
ftw_h1 = 0x1600000000ULL | ramp_sftpro2[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
......@@ -4709,7 +4709,7 @@ 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 = 0x1600000000ULL | ramp_fast_sftpro2[cnt];
control = cnt == 0 ? 0x07 : 0;
break;
......@@ -4770,7 +4770,7 @@ usage:
printf ("usage: %s status|off|MODE\n", argv[0]);
printf ("Available modes are:\n");
printf (" reset, fixed_200, ramp_man, lhcpilot, sftpro2, fast_sftpro2, two_tone\n");
printf ("To improve reliability, use: nco_lcfg, bmctrl reset, bmctrl MODE\n");
printf ("To improve reliability, use: nco_lcfg, bmctrl fixed_200, bmctrl MODE\n");
}
static void cmd_help (struct libwr2rf_dev *dev, int argc, char **argv);
......
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