Fix case where the ganged channel is channel 0

This commit is contained in:
Carl Philipp Klemm 2025-10-13 11:05:11 +02:00
parent 81e7e1a5b3
commit af9263b041
3 changed files with 10 additions and 20 deletions

View file

@ -1,5 +1,3 @@
#ifndef CHANNELWIDGET_H
#define CHANNELWIDGET_H
@ -58,8 +56,8 @@ private:
QVBoxLayout labellayout;
// Track the channel this one is ganged to (if any)
uint16_t gangedDeviceSerial = 0;
uint16_t gangedChannelNumber = 0;
int gangedDeviceSerial = -1;
int gangedChannelNumber = -1;
};
#endif // CHANNELWIDGET_H