Skip to content

Commit

Permalink
plugins/dmxusb: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 24, 2024
1 parent 48a8bf8 commit 456f228
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/dmxusb/src/enttecdmxusbpro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ bool EnttecDMXUSBPro::close(quint32 line, bool input)

int readData(DMXInterface *iface, QByteArray &payload, bool &isMIDI, bool needRDM)
{
bool ok = false;
uchar byte = 0;

// Skip bytes until we find the start of the next message
if ((byte = iface->readByte(&ok)) != ENTTEC_PRO_START_OF_MSG)
if ((iface->readByte()) != ENTTEC_PRO_START_OF_MSG)
return 0;

// Check the message type
Expand Down

0 comments on commit 456f228

Please sign in to comment.