added a spinlock on the scope
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -32,4 +32,5 @@ private:
|
||||
ScopeBuffer* buffer_ = nullptr;
|
||||
std::vector<float> samples_;
|
||||
QTimer timer_;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user