aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Apel <soeren@apelpie.net>2017-02-25 18:41:47 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-02 21:22:10 +0100
commit9de47e9e712844f46f693915d405a89846e61084 (patch)
tree3bd70e2391511666c02681f89597bcd54db546d7
parent7002e64a54a5f8586f96f12a41005f8f8f60b2a6 (diff)
lecroy-xstream: Use sr_period_string()
-rw-r--r--src/hardware/lecroy-xstream/protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c
index bf89f14..871ce4d 100644
--- a/src/hardware/lecroy-xstream/protocol.c
+++ b/src/hardware/lecroy-xstream/protocol.c
@@ -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);