SendEvent(UpdateEventType.StatusText, Resources.action_sending_power_on);
_lib.PowerOnDevices(CecLogicalAddress.Broadcast);
- SendEvent(UpdateEventType.StatusText, Resources.action_detecting_tv_vendor);
- SendEvent(UpdateEventType.ProgressBar, 30);
- SendEvent(UpdateEventType.TVVendorId, (int)_lib.GetDeviceVendorId(CecLogicalAddress.Tv));
+ if (_lib.IsActiveDevice(CecLogicalAddress.Tv))
+ {
+ SendEvent(UpdateEventType.StatusText, Resources.action_detecting_tv_vendor);
+ SendEvent(UpdateEventType.ProgressBar, 30);
+ SendEvent(UpdateEventType.TVVendorId, (int)_lib.GetDeviceVendorId(CecLogicalAddress.Tv));
+ }
SendEvent(UpdateEventType.ProgressBar, 50);
SendEvent(UpdateEventType.StatusText, Resources.action_detecting_avr);
SendEvent(UpdateEventType.AVRVendorId, (int)_lib.GetDeviceVendorId(CecLogicalAddress.AudioSystem));
}
- if (!_lib.GetDevicePowerStatus(CecLogicalAddress.Tv).Equals(CecPowerStatus.On))
+ if (_lib.IsActiveDevice(CecLogicalAddress.Tv)&& !_lib.GetDevicePowerStatus(CecLogicalAddress.Tv).Equals(CecPowerStatus.On))
{
SendEvent(UpdateEventType.ProgressBar, 70);
SendEvent(UpdateEventType.StatusText, Resources.action_activating_source);