added a spinlock on the scope

This commit is contained in:
2026-01-23 21:53:03 -06:00
parent 2a1ea708a1
commit 9ca60ced76
7 changed files with 17 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ void Scope::setScopeBuffer(ScopeBuffer* buffer) {
}
void Scope::paintEvent(QPaintEvent*) {
if (!buffer_) return;
if(!buffer_) return;
int32_t wavelength = buffer_->wavelength();
int32_t trigger = buffer_->trigger();

View File

@@ -32,4 +32,5 @@ private:
ScopeBuffer* buffer_ = nullptr;
std::vector<float> samples_;
QTimer timer_;
};