Skip to content

Commit a3f7142

Browse files
authored
Fix bug with driver not registering correctly (#2293)
The driver is failing to register as Dust Cap and Light Box
1 parent 0ade2d4 commit a3f7142

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/auxiliary/gemini_flatpanel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ bool GeminiFlatpanel::initProperties()
2929
LI::initProperties(MAIN_CONTROL_TAB, LI::CAN_DIM);
3030
DI::initProperties(MAIN_CONTROL_TAB);
3131

32+
33+
// Driver interface will be set dynamically in Handshake() based on device capabilities
34+
setDriverInterface(AUX_INTERFACE | LIGHTBOX_INTERFACE | DUSTCAP_INTERFACE);
35+
3236
// Initialize device selection property
3337
DeviceTypeSP.fill(
3438
getDeviceName(),
@@ -46,8 +50,6 @@ bool GeminiFlatpanel::initProperties()
4650
DeviceTypeSP[DEVICE_LITE].fill("LITE", "Lite", ISS_OFF);
4751
DeviceTypeSP.load();
4852

49-
// Driver interface will be set dynamically in Handshake() based on device capabilities
50-
5153
addAuxControls();
5254

5355
serialConnection = new Connection::Serial(this);

0 commit comments

Comments
 (0)