diff --git a/drivers/apc_modbus.c b/drivers/apc_modbus.c index 4f7cc9fd02..47ca23e5a6 100644 --- a/drivers/apc_modbus.c +++ b/drivers/apc_modbus.c @@ -1579,8 +1579,10 @@ void upsdrv_makevartable(void) #endif /* defined NUT_MODBUS_HAS_USB */ #if defined NUT_MODBUS_HAS_USB + upsdebugx(1, "This build of the driver is USB-capable; also Serial and TCP Modbus RTU are supported"); addvar(VAR_VALUE, "porttype", "Modbus port type (serial, tcp, usb, default=usb)"); #else + upsdebugx(1, "This build of the driver is not USB-capable, only Serial and TCP Modbus RTU are supported"); addvar(VAR_VALUE, "porttype", "Modbus port type (serial, tcp, default=serial)"); #endif /* defined NUT_MODBUS_HAS_USB */ addvar(VAR_VALUE, "slaveid", "Modbus slave id (default=1)");