Skip to content

Commit

Permalink
Fix exception when called without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerszabo committed Feb 7, 2018
1 parent 163ff2d commit 10de4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RGBFusionTool/RGBFusionMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void Main(string[] args)
if (opt_Verbose > 0) { Console.Out.WriteLine("Color cycle, rotating every {0} seconds", cycleTime.TotalSeconds); }
setting = new ColorCycleLedSetting(brightness, 0, cycleTime);
}
else
else if (!string.IsNullOrEmpty(opt_Color))
{
Color realColor = Color.FromName(opt_Color);
if (realColor.A == 0)
Expand Down

0 comments on commit 10de4d1

Please sign in to comment.