From fd2a1f1df461690f14779e91de5bee9f9ec2d6df Mon Sep 17 00:00:00 2001 From: michalprusa Date: Sat, 17 Jun 2017 20:54:59 +0200 Subject: [PATCH] Resolution setting fixed --- Firmware/pat9125.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/pat9125.cpp b/Firmware/pat9125.cpp index d09c55e1..fefb8335 100755 --- a/Firmware/pat9125.cpp +++ b/Firmware/pat9125.cpp @@ -24,10 +24,10 @@ int pat9125_init(unsigned char xres, unsigned char yres) ucPID2 = pat9125_rd_reg(PAT9125_PID2); if ((ucPID1 != 0x31) || (ucPID2 != 0x91)) { - pat9125_wr_reg(PAT9125_RES_X, xres); - pat9125_wr_reg(PAT9125_RES_Y, yres); return 0; } + pat9125_wr_reg(PAT9125_RES_X, xres); + pat9125_wr_reg(PAT9125_RES_Y, yres); return 1; }