Skip to content

Commit

Permalink
Lightbar turns off when pressing Stop while wired
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Sep 2, 2014
1 parent c0a2dcc commit 60a054e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions DS4Control/DS4LightBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ public static void updateLightBar(DS4Device device, int deviceNum, DS4State cSta
else if (shuttingdown)
color = new DS4Color { red = 0, green = 0, blue = 0 };
else
color = new DS4Color { red = 32, green = 64, blue = 64 };
{
if (device.ConnectionType == ConnectionType.BT)
color = new DS4Color { red = 32, green = 64, blue = 64 };
else
color = new DS4Color { red = 0, green = 0, blue = 0 };
}
Color dsc = Color.FromArgb(color.red, color.green, color.blue);
if (Global.getAProfile(deviceNum).ToLower().Contains("distance"))
{ //Thing I did for Distance
Expand Down Expand Up @@ -171,7 +176,7 @@ public static void updateLightBar(DS4Device device, int deviceNum, DS4State cSta
}
if (device.LightBarOnDuration != haptics.LightBarFlashDurationOn && device.LightBarOnDuration != 1 && haptics.LightBarFlashDurationOn == 0)
haptics.LightBarFlashDurationOff = haptics.LightBarFlashDurationOn = 1;
if (device.LightBarOnDuration == 1)
if (device.LightBarOnDuration == 1) //helps better reset the color
System.Threading.Thread.Sleep(5);
device.pushHapticState(haptics);
}
Expand Down
4 changes: 2 additions & 2 deletions DS4Tool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.55")]
[assembly: AssemblyFileVersion("1.4.0.55")]
[assembly: AssemblyVersion("1.4.0.56")]
[assembly: AssemblyFileVersion("1.4.0.56")]

0 comments on commit 60a054e

Please sign in to comment.