From d121f5a804ebb163df72e7a604e1df28b6b39c0b Mon Sep 17 00:00:00 2001 From: Frankenstone Date: Sat, 30 Dec 2023 12:32:45 +0100 Subject: [PATCH] frontend.cpp: e4hdultra needs more time when PIN is used --- src/zapit/src/frontend.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index 448b0ed28..e44c6c5d2 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -1893,7 +1893,11 @@ uint32_t CFrontend::sendEN50494TuningCommand(const uint32_t frequency, const int } fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18); usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */ +#if BOXMODEL_E4HDULTRA + sendDiseqcCommand(&cmd, 120); +#else sendDiseqcCommand(&cmd, 80); /* en50494 says: >2ms and < 60 ms -- it seems we must add the lengthe of telegramm itself (~65ms)*/ +#endif fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt); } return ret; @@ -1930,7 +1934,11 @@ uint32_t CFrontend::sendEN50607TuningCommand(const uint32_t frequency, const int high_band; /* high_band == 0x01 */ fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18); usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */ - sendDiseqcCommand(&cmd, 80); /* en50494 says: >2ms and < 60 ms -- it seems we must add the lengthe of telegramm itself (~65ms)*/ +#if BOXMODEL_E4HDULTRA + sendDiseqcCommand(&cmd, 120); +#else + sendDiseqcCommand(&cmd, 80); /* en50494 says: >2ms and < 60 ms -- it seems we must add the lengthe of telegramm itself (~65ms)*/ +#endif fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt); } return ret;