diff --git a/acceleration.cpp b/acceleration.cpp index 232476d..244ce72 100644 --- a/acceleration.cpp +++ b/acceleration.cpp @@ -170,12 +170,12 @@ void Acceleration::Init() { } std::shared_ptr ptr = std::dynamic_pointer_cast(base_ptr); if (ptr->base_config_[channel - 1].channel_type != kVibAcc) { - qDebug() << " channel type changes"; + qDebug() << "[Acceleration::Init] channel type changes"; return; } std::shared_ptr variable_base = ptr->GetChannelPtr(channel); if (variable_base == nullptr) { - qDebug() << "no channel ptr"; + qDebug() << "[Acceleration::Init] no channel ptr"; return; } std::shared_ptr variable_ptr = std::dynamic_pointer_cast(variable_base); diff --git a/acceleration.h b/acceleration.h index 079e586..21ce04c 100644 --- a/acceleration.h +++ b/acceleration.h @@ -31,12 +31,6 @@ class Acceleration : public QWidget { private: Ui::Acceleration *ui; -// Filter filter[3]; -// Dealy delay; -// Variables variables[4]; -// Alert_Variables alert_variables; - -// void readJsonFile(const QString &filePath); void Init(); }; diff --git a/radial_vibration.cpp b/radial_vibration.cpp index e4614fc..8f2d014 100644 --- a/radial_vibration.cpp +++ b/radial_vibration.cpp @@ -83,17 +83,17 @@ void Radial::on_checkBox_smax_ampl_toggled(bool checked) { void Radial::Init() { std::shared_ptr base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot_no); if (base_ptr == nullptr) { - qCritical() << "[Velocity::Init] should not be here"; + qCritical() << "[Radial::Init] should not be here"; return; } std::shared_ptr ptr = std::dynamic_pointer_cast(base_ptr); if (ptr->base_config_[channel - 1].channel_type != kVibRadial) { - qDebug() << " channel type changes"; + qDebug() << "[Radial::Init] channel type changes"; return; } std::shared_ptr variable_base = ptr->GetChannelPtr(channel); if (variable_base == nullptr) { - qDebug() << "no channel ptr"; + qDebug() << "[Radial::Init] no channel ptr"; return; } std::shared_ptr variable_ptr = std::dynamic_pointer_cast(variable_base); diff --git a/radial_vibration.h b/radial_vibration.h index 874a036..adac59b 100644 --- a/radial_vibration.h +++ b/radial_vibration.h @@ -28,11 +28,6 @@ class Radial : public QWidget { private: Ui::Radial_vibration *ui; -// Filter filter[3]; -// Dealy delay; -// Variables variables[6]; -// Alert_Variables alert_variables; -// void readJsonFile(const QString &filePath); void Init(); }; diff --git a/velocity.cpp b/velocity.cpp index 2b2b41e..65612f0 100644 --- a/velocity.cpp +++ b/velocity.cpp @@ -126,12 +126,12 @@ void Velocity::Init() { } std::shared_ptr ptr = std::dynamic_pointer_cast(base_ptr); if (ptr->base_config_[channel - 1].channel_type != kVibVelocity) { - qDebug() << " channel type changes"; + qDebug() << "[Velocity::Init] channel type changes"; return; } std::shared_ptr variable_base = ptr->GetChannelPtr(channel); if (variable_base == nullptr) { - qDebug() << "no channel ptr"; + qDebug() << "[Velocity::Init] no channel ptr"; return; } std::shared_ptr variable_ptr = std::dynamic_pointer_cast(variable_base); diff --git a/velocity.h b/velocity.h index d771a49..af40b1b 100644 --- a/velocity.h +++ b/velocity.h @@ -28,12 +28,6 @@ class Velocity : public QWidget { private: Ui::Velocity *ui; -// Filter filter[3]; -// Dealy delay; -// Variables variables[4]; -// Alert_Variables alert_variables; - -// void readJsonFile(const QString &filePath); void Init(); };