From: Soeren Apel Date: Sat, 25 Feb 2017 17:41:47 +0000 (+0100) Subject: lecroy-xstream: Use sr_period_string() X-Git-Tag: libsigrok-0.5.0~107 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9de47e9e712844f46f693915d405a89846e61084;p=libsigrok.git lecroy-xstream: Use sr_period_string() --- diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c index bf89f14c..871ce4d1 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);