Skip to content

Commit 14dd747

Browse files
committed
On button PTT fix
On button doesn't generate a Keypad interrupt
1 parent 18daaca commit 14dd747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/keypad.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ static void keypad_scan_event(int index) {
9191
uint16_t row = ~keypad.key_map[keypad.kpc.current_row];
9292
row &= ~(0x80000 >> keypad.kpc.current_row); // Emulate weird diagonal glitch
9393
row |= ~0u << (keypad.kpc.size >> 8 & 0xFF); // Unused columns read as 1
94+
if(keypad.kpc.current_row == 0)
95+
row |= (1 << 9);
9496
if (emulate_cx)
9597
row = ~row;
9698

0 commit comments

Comments
 (0)