Skip to content
Snippets Groups Projects
Commit 560f4896 authored by Alexander Ivanov's avatar Alexander Ivanov
Browse files

Allow -0 flag (same as -1 or no flag)

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@2271 6dcd42c9-f523-4c6d-aada-af552506706e
parent 52e0d917
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ CDS_HARDWARE cdsPciModules;
}
system_name[0] = 0;
while ((c = getopt (argc, argv, "h?ta1248s:l:")) != EOF) {
while ((c = getopt (argc, argv, "h?ta01248s:l:")) != EOF) {
switch (c) {
case 's':
if (strlen(optarg) > (PARAM_ENTRY_LEN-2)) {
......@@ -133,6 +133,11 @@ CDS_HARDWARE cdsPciModules;
sys_freq_mult *= c - '0';
break;
}
case '0':
{
sys_freq_mult = 1;
break;
}
}
}
printf("%d kHz system\n", 16 * sys_freq_mult);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment