More replace POINTS_COUNT to sweep_points

pull/4/head
DiSlord 6 years ago
parent 425221aa10
commit fd70371a54

@ -993,7 +993,7 @@ VNA_SHELL_FUNCTION(cmd_scan)
} }
if (argc >= 3) { if (argc >= 3) {
points = my_atoi(argv[2]); points = my_atoi(argv[2]);
if (points <= 0 || points > POINTS_COUNT) { if (points <= 0 || points > sweep_points) {
shell_printf("sweep points exceeds range "define_to_STR(POINTS_COUNT)"\r\n"); shell_printf("sweep points exceeds range "define_to_STR(POINTS_COUNT)"\r\n");
return; return;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.