[TRX] indicates optional arg (RX or TX), RX default
T|F indicates TRUE or FALSE
+If first char of command is '-', eg
+-setNR ON
+command is not echoed to log output.
+
setFilter low-freq high-freq TRX
setMode mode [TRX] // mode = USB, LSB, CWL, CWU, etc.
setOsc freq [TRX] // freq in Hz (float)
int
do_update(char *str, FILE *log) {
+ BOOLEAN quiet = FALSE;
SPLIT splt = &uni.update.splt;
+ if (*str == '-') {
+ quiet = TRUE;
+ str++;
+ }
+
split(splt, str);
if (NF(splt) < 1) return -1;
val = (*thk)(NF(splt) - 1, Fptr(splt, 1));
sem_post(&top.sync.upd.sem);
- if (log) {
+ if (log && !quiet) {
int i;
char *s = since(&top.start_tv);
fprintf(log, "update[%s]: returned %d from", s, val);