Skip to content

Commit 78f8b9f

Browse files
authored
Merge pull request #700 from FrameworkComputer/azalea.fix_scancode
azalea: use UNASSIGNED scan code for workaround
2 parents 7f5e9d4 + bda2078 commit 78f8b9f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/keyboard_8042_sharedlib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ enum scancode_values {
196196

197197
SCANCODE_FAKE_FN = 0xe016,
198198
SCANCODE_FAKE_POWER = 0xe025,
199+
SCANCODE_UNASSIGNED = 0x0040,
199200
#endif /* CONFIG_CUSTOMIZED_DESIGN */
200201
};
201202
#ifdef CONFIG_CUSTOMIZED_DESIGN

zephyr/program/lotus/azalea/src/power_sequence.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ static void key_stuck_wa(void)
272272
int wa_bit = *host_get_memmap(EC_CUSTOMIZED_MEMMAP_DISPLAY_ON);
273273

274274
if (wa_bit) {
275-
simulate_keyboard(120, 1);
276-
simulate_keyboard(120, 0);
275+
simulate_keyboard(SCANCODE_UNASSIGNED, 1);
276+
simulate_keyboard(SCANCODE_UNASSIGNED, 0);
277277
keyboard_clear_buffer();
278278
*host_get_memmap(EC_CUSTOMIZED_MEMMAP_DISPLAY_ON) = 0;
279279
hook_call_deferred(&key_stuck_wa_data, -1);

0 commit comments

Comments
 (0)