aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hardware/hameg-hmo/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hardware/hameg-hmo/protocol.c b/src/hardware/hameg-hmo/protocol.c
index b251659..b0cdfe7 100644
--- a/src/hardware/hameg-hmo/protocol.c
+++ b/src/hardware/hameg-hmo/protocol.c
@@ -364,8 +364,9 @@ static void scope_state_dump(const struct scope_config *config,
state->digital_pods[i] ? "On" : "Off");
}
- tmp = sr_period_string((*config->timebases)[state->timebase][0] *
- (*config->timebases)[state->timebase][1]);
+ /* FIXME: this is wrong for TB > 1 second */
+ tmp = sr_period_string((*config->timebases)[state->timebase][1] /
+ (*config->timebases)[state->timebase][0]);
sr_info("Current timebase: %s", tmp);
g_free(tmp);