X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fyokogawa-dlm%2Fprotocol.c;h=6955baaeec23bf2e11f894d7247d21880c3d3231;hb=d2f7c417fdd96a13d8fd86350d2fc13db16f626c;hp=08866898b093bf483ad273ba650458e822bd3c06;hpb=59b9c3290aef7dfdc58afd0a4db8b347e0878c91;p=libsigrok.git diff --git a/src/hardware/yokogawa-dlm/protocol.c b/src/hardware/yokogawa-dlm/protocol.c index 08866898..6955baae 100644 --- a/src/hardware/yokogawa-dlm/protocol.c +++ b/src/hardware/yokogawa-dlm/protocol.c @@ -305,8 +305,8 @@ static void scope_state_dump(const struct scope_config *config, state->pod_states[i] ? "On" : "Off"); } - tmp = sr_period_string(dlm_timebases[state->timebase][1] / - dlm_timebases[state->timebase][0]); + tmp = sr_period_string(dlm_timebases[state->timebase][0], + dlm_timebases[state->timebase][1]); sr_info("Current timebase: %s", tmp); g_free(tmp); @@ -1171,7 +1171,7 @@ SR_PRIV int dlm_data_receive(int fd, int revents, void *cb_data) * As of now we only support importing the current acquisition * data so we're going to stop at this point. */ - sdi->driver->dev_acquisition_stop(sdi); + sr_dev_acquisition_stop(sdi); return TRUE; } else devc->current_channel = devc->current_channel->next;