Skip to content

Commit

Permalink
Got types right for brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Feb 21, 2020
1 parent 0089ac8 commit 45acd53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey)

public void SetBrightness(ushort brightness)
{
var brightnessPercent = brightness/(float) 65535.0;
var brightnessPercent = (float) Math.Round(brightness/65535.0f,1);

Debug.Console(0,this,"Brightness Level {0} Percent {1}", brightness, brightnessPercent * 100);

Expand Down
Binary file not shown.

0 comments on commit 45acd53

Please sign in to comment.