]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Use sr_period_string()
authorSoeren Apel <redacted>
Sat, 25 Feb 2017 17:41:47 +0000 (18:41 +0100)
committerUwe Hermann <redacted>
Thu, 2 Mar 2017 20:22:10 +0000 (21:22 +0100)
src/hardware/lecroy-xstream/protocol.c

index bf89f14cb8cecfc89fbfafdeabd28940cb1c373e..871ce4d1bf7c4ebfe79e17540247659b2ee7fe53 100644 (file)
@@ -242,8 +242,8 @@ static void scope_state_dump(const struct scope_config *config,
                        tmp, state->analog_channels[i].vertical_offset);
        }
 
-       tmp = sr_period_string_f(1.0/(((float)config->timebases[state->timebase].p) /
-                                     ((float)config->timebases[state->timebase].q)), 0);
+       tmp = sr_period_string(((float)config->timebases[state->timebase].q) /
+                                     ((float)config->timebases[state->timebase].p));
        sr_info("Current timebase: %s", tmp);
        g_free(tmp);