Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set sample rate limits for horizontal dock on device init #311

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openhantek/src/hantekdso/hantekdsocontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class HantekDsoControl : public QObject {
}
const ControlCommand *getCommand(Hantek::ControlCode code) const;

/// \brief Update the minimum and maximum supported samplerate.
void updateSamplerateLimits();

private:
bool isRollMode() const;
bool isFastRate() const;
Expand Down Expand Up @@ -169,9 +172,6 @@ class HantekDsoControl : public QObject {
/// \brief Restore the samplerate/timebase targets after divider updates.
void restoreTargets();

/// \brief Update the minimum and maximum supported samplerate.
void updateSamplerateLimits();

private:
/// Pointers to bulk/control commands
BulkCommand *command[255] = {0};
Expand Down
1 change: 1 addition & 0 deletions openhantek/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ void applySettingsToDevice(HantekDsoControl *dsoControl, DsoSettingsScope *scope
dsoControl->setPretriggerPosition(scope->trigger.position * scope->horizontal.timebase * DIVS_TIME);
dsoControl->setTriggerSlope(scope->trigger.slope);
dsoControl->setTriggerSource(scope->trigger.special, scope->trigger.source);
dsoControl->updateSamplerateLimits();
}

/// \brief Initialize resources and translations and show the main window.
Expand Down