Skip to content

Commit

Permalink
wip: fix tests maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Aug 18, 2024
1 parent 08be394 commit c2c9e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/control/controlencoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#include "control/control.h"
#include "moc_controlencoder.cpp"

using enum ControlConfigFlag;

ControlEncoder::ControlEncoder(const ConfigKey& key, bool bIgnoreNops)
: ControlObject(key, ControlConfigFlags(Default).setFlag(IgnoreNops, bIgnoreNops)) {
: ControlObject(key,
bIgnoreNops ? ControlConfigFlag::IgnoreNops
: ControlConfigFlag::None) {
if (m_pControl) {
m_pControl->setBehavior(new ControlEncoderBehavior());
}
Expand Down

0 comments on commit c2c9e15

Please sign in to comment.