From d39896f6a2ff217dee649b9154bb52ebddc2c61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DUPONCHEEL=20S=C3=A9bastien?= Date: Mon, 25 Dec 2023 12:42:20 +0100 Subject: [PATCH] HDMI CEC: Allow TV device type emulation. (#20310) The previous check set device type default when HDMIType was set to CEC_Device::CDT_TV. --- tasmota/tasmota_xdrv_driver/xdrv_70_1_hdmi_cec.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_70_1_hdmi_cec.ino b/tasmota/tasmota_xdrv_driver/xdrv_70_1_hdmi_cec.ino index 4a1daf136..deb7c9776 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_70_1_hdmi_cec.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_70_1_hdmi_cec.ino @@ -65,7 +65,7 @@ void HdmiCecInit(void) { // CEC device type CEC_Device::CEC_DEVICE_TYPE device_type = (CEC_Device::CEC_DEVICE_TYPE) Settings->hdmi_cec_device_type; - if (device_type == CEC_Device::CDT_TV || device_type >= CEC_Device::CDT_LAST) { + if (device_type < 0 || device_type >= CEC_Device::CDT_LAST) { // if type in Settings is invalid, default to PLAYBACK_DEVICE device_type = CEC_Device::CDT_PLAYBACK_DEVICE; Settings->hdmi_cec_device_type = (uint8_t) device_type;