Reduce hysteresis range by 1 to fix mode change detection

pull/19/head
IanSB 2018-12-03 03:59:46 +00:00
rodzic 6755fef95d
commit 9fe28f188b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -488,9 +488,9 @@ void recalculate_hdmi_clock_line_locked_update() {
if (abs(difference) > capinfo->height/4) {
difference = -difference;
}
if (genlocked == 1 && abs(difference) > 3) {
if (genlocked == 1 && abs(difference) > 2) {
genlocked = 0;
if (abs(difference) > 4)
if (abs(difference) > 3)
{
log_info("Probable mode change - resetting ReSync counter");
resync_count = 0;