From e779413ca75f6464af1728bb9c3aefd0c0a328a7 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Thu, 2 Dec 2021 22:17:01 +0100 Subject: [PATCH] change cec delay --- libarmbox/hdmi_cec.cpp | 2 +- libarmbox/hdmi_cec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libarmbox/hdmi_cec.cpp b/libarmbox/hdmi_cec.cpp index 8e2e16d..dd6663a 100644 --- a/libarmbox/hdmi_cec.cpp +++ b/libarmbox/hdmi_cec.cpp @@ -336,7 +336,7 @@ void hdmi_cec::SendCECMessage(struct cec_message &txmessage, int sleeptime) ::write(hdmiFd, &message, 2 + message.length); } - usleep(sleeptime * 10000); + usleep(sleeptime * 1000); } } diff --git a/libarmbox/hdmi_cec.h b/libarmbox/hdmi_cec.h index 28aa19d..4ec84c8 100644 --- a/libarmbox/hdmi_cec.h +++ b/libarmbox/hdmi_cec.h @@ -89,7 +89,7 @@ class hdmi_cec : public OpenThreads::Thread void SetCECAutoView(bool); void SetCECAutoStandby(bool); void GetCECAddressInfo(); - void SendCECMessage(struct cec_message &message, int sleeptime = 10); + void SendCECMessage(struct cec_message &message, int sleeptime = 250); void SetCECState(bool state); void ReportPhysicalAddress(); bool standby_cec_activ;