Fix to use Color.GetArgb() instead of Color.Argb property
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 14 Jul 2016 07:35:12 +0000 (16:35 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 14 Jul 2016 07:35:12 +0000 (16:35 +0900)
The property Color.Argb changed to the method Color.GetArgb()
because the Color can be a default state.

Change-Id: I9212c2ff57dc0e09daa4986403a1fc2a0fb6cce8

Tizen.System/Device/Led.cs

index 5eb0f5a..2df3ae1 100755 (executable)
@@ -59,7 +59,7 @@ namespace Tizen.System
         public static void Play(int on, int off, Color color)
         {
             //looks like only blink option is supported. So hard coded to default blink option.
-            DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, Convert.ToUInt32(color.Argb), 1);
+            DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, Convert.ToUInt32(color.GetArgb()), 1);
             if (res != DeviceError.None)
             {
                 throw DeviceExceptionFactory.CreateException(res, "failed to play Led.");