]> git.zerfleddert.de Git - rigol/blobdiff - scope.c
remove debug output
[rigol] / scope.c
diff --git a/scope.c b/scope.c
index 9b75ba4ef654564d762f1221857dc1c7f9822cd7..43439ff9219284b3299e7d903a262cd2f5b4ad63 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -105,8 +105,6 @@ int scope_get_truth_value(struct scope *sc, char *cmd)
                return 0;
        }
 
-       printf("%s %s\n", cmd, buf);
-
        if (strcasecmp(buf, "on") == 0) {
                return 1;
        } else if (strcasecmp(buf, "enable") == 0) {
@@ -268,5 +266,8 @@ int update_scope_status(struct scope *sc)
        sc->status.timebase.scale = scope_get_double(sc, ":TIM:SCAL?");
        COPY_SCOPE_STRING(sc, ":TIM:FORM?", sc->status.timebase.format);
 
+       sc->status.math.displayed = scope_get_truth_value(sc, ":MATH:DISP?");
+       sc->status.fft.displayed = scope_get_truth_value(sc, ":FFT:DISP?");
+
        return 0;
 }
Impressum, Datenschutz