diff --git a/firmware/target/arm/as3525/dbop-as3525.c b/firmware/target/arm/as3525/dbop-as3525.c index f65f884..660890a 100644 --- a/firmware/target/arm/as3525/dbop-as3525.c +++ b/firmware/target/arm/as3525/dbop-as3525.c @@ -35,15 +35,15 @@ static unsigned short dbop_read_input(void) unsigned int dbop_timpol23_old = DBOP_TIMPOL_23; unsigned int value = 0; - /* make sure that the DBOP FIFO is empty */ - while ((DBOP_STAT & (1<<10)) == 0); - DBOP_TIMPOL_23 = 0xe007e007; /* no strobe towards lcd */ #ifdef SANSA_FUZE value = 50; if (dbop_locked <= 0) #endif { + /* make sure that the DBOP FIFO is empty */ + while ((DBOP_STAT & (1<<10)) == 0); + /* write DBOP_DOUT to pre-charge DBOP data lines with a high level */ DBOP_CTRL = (1 << 19) | /* tri-state output */ (1 << 16) | /* enw=1 (enable write) */