Skip to content

Commit

Permalink
Merge pull request #49 from meepingsnesroms/devel
Browse files Browse the repository at this point in the history
Fix returning port k for port f
  • Loading branch information
meepingsnesroms authored Dec 22, 2018
2 parents ba9e6f2 + 1aa9fb1 commit 9199581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hardwareRegistersAccessors.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9199581

Please sign in to comment.