Fix double setting of low keyboard outputs

This commit is contained in:
Jeremy Soller
2020-02-24 09:07:02 -07:00
parent ce3a097b9b
commit aa065f0a05
3 changed files with 3 additions and 3 deletions

View File

@ -138,8 +138,8 @@ void kbscan_event(void) {
for (i = 0; i < KM_OUT; i++) {
// Set current line as output
if (i < 8) {
KSOLGOEN = 0;
KSOLGOEN = 1 << i;
KSOHGOEN = 0;
GPCRC3 = GPIO_IN;
GPCRC5 = GPIO_IN;
} else if (i < 16) {

View File

@ -146,8 +146,8 @@ void kbscan_event(void) {
for (i = 0; i < KM_OUT; i++) {
// Set current line as output
if (i < 8) {
KSOLGOEN = 0;
KSOLGOEN = 1 << i;
KSOHGOEN = 0;
} else if (i < 16) {
KSOLGOEN = 0;
KSOHGOEN = 1 << (i - 8);

View File

@ -146,8 +146,8 @@ void kbscan_event(void) {
for (i = 0; i < KM_OUT; i++) {
// Set current line as output
if (i < 8) {
KSOLGOEN = 0;
KSOLGOEN = 1 << i;
KSOHGOEN = 0;
} else if (i < 16) {
KSOLGOEN = 0;
KSOHGOEN = 1 << (i - 8);