From 1aa9fb1bfc19cd6c56c2974b8b2babe43f012afd Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Sat, 22 Dec 2018 11:54:23 -0800 Subject: [PATCH] Fix returning port k for port f --- src/hardwareRegistersAccessors.c.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardwareRegistersAccessors.c.h b/src/hardwareRegistersAccessors.c.h index d1aa2b02..fdb34959 100644 --- a/src/hardwareRegistersAccessors.c.h +++ b/src/hardwareRegistersAccessors.c.h @@ -618,9 +618,9 @@ static uint8_t getPortEValue(void){ static uint8_t getPortFValue(void){ uint8_t portFValue = 0x00; - uint8_t portFData = registerArrayRead8(PKDATA); - uint8_t portFDir = registerArrayRead8(PKDIR); - uint8_t portFSel = registerArrayRead8(PKSEL); + uint8_t portFData = registerArrayRead8(PFDATA); + uint8_t portFDir = registerArrayRead8(PFDIR); + uint8_t portFSel = registerArrayRead8(PFSEL); bool penIrqPin = !(ads7846PenIrqEnabled && palmInput.touchscreenTouched);//penIrqPin pulled low on touch portFValue |= penIrqPin << 1;