Add offset command

pull/5/head
erikkaashoek 5 years ago
parent ae3a69cfbf
commit e660f336c0

@ -2412,6 +2412,7 @@ static const VNAShellCommand commands[] =
{ "mode", cmd_mode, 0 },
{ "spur", cmd_spur, 0 },
{ "load", cmd_load, 0 },
{ "offset", cmd_offset, 0},
{ "output", cmd_output, 0 },
{ "deviceid", cmd_deviceid, 0 },
{ "selftest", cmd_selftest, 0 },

@ -163,6 +163,18 @@ VNA_SHELL_FUNCTION(cmd_sweeptime)
VNA_SHELL_FUNCTION(cmd_offset)
{
if (argc != 1) {
shell_printf("usage: offset -100.0..+100.0\r\n");
return;
}
float o = my_atof(argv[0]);
set_offset(o);
}
VNA_SHELL_FUNCTION(cmd_levelchange)
{

Loading…
Cancel
Save

Powered by TurnKey Linux.