Skip to content

Commit e1c40da

Browse files
committed
force SPIKE1
1 parent 852cb6d commit e1c40da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/dmdreader.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ int detect_dmd()
346346

347347
printf("", dotclk, de, rdata);
348348

349+
// Force SPIKE1
350+
spi_notify_onoff(DMD_SPIKE1);
351+
return DMD_SPIKE1;
352+
353+
349354
if ((dotclk > 450000) && (dotclk < 550000) &&
350355
(de > 3800) && (de < 4000) &&
351356
(rdata > 115) && (rdata < 130))
@@ -374,11 +379,6 @@ int detect_dmd()
374379
return DMD_SAM;
375380
}
376381

377-
// Fallback to SPIKE1
378-
spi_notify_onoff(DMD_SPIKE1);
379-
return DMD_SPIKE1;
380-
381-
382382
spi_notify_onoff(1);
383383
return DMD_UNKNOWN;
384384
}

0 commit comments

Comments
 (0)