Merged in IngoF/seems-there-is-a-timing-problem-see-here-1566493788064 (pull request #3)

Seems there is a timing problem.

Approved-by: vanhofen


Origin commit data
------------------
Branch: ni/coolstream
Commit: 73e946c9d0
Author: IngoF <ingo.fischer@arcormail.de>
Date: 2019-08-22 (Thu, 22 Aug 2019)



------------------
This commit was generated by Migit
This commit is contained in:
IngoF
2019-08-22 19:32:11 +00:00
committed by vanhofen

View File

@@ -1724,7 +1724,7 @@ uint32_t CFrontend::sendEN50494TuningCommand(const uint32_t frequency, const int
} }
fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18); fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18);
usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */ usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */
sendDiseqcCommand(&cmd, 80); /* en50494 says: >2ms and < 60 ms */ sendDiseqcCommand(&cmd, 120); /* en50494 says: >2ms and < 60 ms -- it seems we must add the lengthe of telegramm itself (~65ms)*/
fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt); fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt);
} }
return ret; return ret;
@@ -1761,7 +1761,7 @@ uint32_t CFrontend::sendEN50607TuningCommand(const uint32_t frequency, const int
high_band; /* high_band == 0x01 */ high_band; /* high_band == 0x01 */
fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18); fop(ioctl, FE_SET_VOLTAGE, SEC_VOLTAGE_18);
usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */ usleep(20 * 1000); /* en50494 says: >4ms and < 22 ms */
sendDiseqcCommand(&cmd, 80); /* en50494 says: >2ms and < 60 ms */ sendDiseqcCommand(&cmd, 120); /* en50494 says: >2ms and < 60 ms -- it seems we must add the lengthe of telegramm itself (~65ms)*/
fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt); fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt);
} }
return ret; return ret;