Skip to content

Commit

Permalink
vc: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Apr 25, 2024
1 parent 1718e06 commit e0dc567
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/virtualconsole/vcwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ void VCWidget::setInputSource(QSharedPointer<QLCInputSource> const& source, quin
// retrieve plugin specific params for feedback
if (source->feedbackExtraParams(QLCInputFeedback::LowerValue).toInt() == -1)
source->setFeedbackExtraParams(QLCInputFeedback::LowerValue, profile->channelExtraParams(ich));
if (source->feedbackExtraParams(QLCInputFeedback::UpperValue).toInt() == -1 || !source->feedbackExtraParams(QLCInputFeedback::UpperValue).isValid())
if (source->feedbackExtraParams(QLCInputFeedback::UpperValue).toInt() == -1 ||
!source->feedbackExtraParams(QLCInputFeedback::UpperValue).isValid())
source->setFeedbackExtraParams(QLCInputFeedback::UpperValue, profile->channelExtraParams(ich));
if (source->feedbackExtraParams(QLCInputFeedback::MonitorValue).toInt() == -1)
source->setFeedbackExtraParams(QLCInputFeedback::MonitorValue, profile->channelExtraParams(ich));
Expand Down Expand Up @@ -713,7 +714,7 @@ void VCWidget::sendFeedback(int value, QSharedPointer<QLCInputSource> src, QVari
if (acceptsInput() == false)
return;

qDebug() << "[VCWidget] Send feedback to uni" << src->universe() << "," << src->channel() << ", param" << extraParams;
//qDebug() << "[VCWidget] Send feedback to uni" << src->universe() << "," << src->channel() << ", param" << extraParams;

m_doc->inputOutputMap()->sendFeedBack(
src->universe(), src->channel(), value,
Expand Down

0 comments on commit e0dc567

Please sign in to comment.