The property Color.Argb changed to the method Color.GetArgb()
because the Color can be a default state.
Change-Id: I9212c2ff57dc0e09daa4986403a1fc2a0fb6cce8
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.");