Skip to content

Commit dd3f199

Browse files
committed
Tweaked custom device log message
1 parent 2b44a2e commit dd3f199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DS4Windows/DS4Library/DS4Devices.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private static VidPidInfo[] GetSupportedDevices()
493493

494494
if (customDevices != null) {
495495
foreach (var cDev in customDevices) {
496-
AppLogger.LogToGui($"Custom device {cDev.Vid:X4}:{cDev.Pid:X4} ({cDev.Name}) set to{(cDev.EnableDetection ? "" : " NOT")} be detected. [ Type: {(InputDeviceType)cDev.InputDevType} ][ FeatureSet: {Convert.ToString((int)cDev.FeatureSet, 2):7} ][ ConnectionTypeDeterminer: {((cDev.ConnectionTypeDeterminer != null) ? (ConnectionTypeDeterminer)cDev.ConnectionTypeDeterminer : null )} ].", false);
496+
AppLogger.LogToGui($"[Custom device] {cDev.Vid:X4}/{cDev.Pid:X4} - {cDev.Name} - [ {(cDev.EnableDetection ? "Detection: ON" : " Detection: OFF")} ][ Type: {(InputDeviceType)cDev.InputDevType} ][ FeatureSet: {Convert.ToString((int)cDev.FeatureSet, 2).PadLeft(7,'0')} ][ ConnectionTypeDeterminer: {((cDev.ConnectionTypeDeterminer != null) ? (ConnectionTypeDeterminer)cDev.ConnectionTypeDeterminer : null )} ].", false);
497497
int index = supportedDevicesList.FindIndex(device => (device.vid, device.pid) == (cDev.Vid, cDev.Pid));
498498
if(index >= 0) {
499499
if (cDev.EnableDetection) {

0 commit comments

Comments
 (0)