Skip to content

Commit

Permalink
global scope not needed, move to kbd_task function
Browse files Browse the repository at this point in the history
  • Loading branch information
borb committed Apr 14, 2021
1 parent 5fa4ab5 commit 3b91ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ extern volatile uint16_t srdata;
extern uint8_t realtime_graphics_debug;
uint8_t realtime_disassembly, int2_enabled = 0;
uint32_t do_disasm = 0, old_level;
char c = 0, c_code = 0, c_type = 0; // @todo temporary main/cpu_task scope workaround until input moved to a thread
uint32_t last_irq = 8, last_last_irq = 8;

char disasm_buf[4096];
Expand Down Expand Up @@ -265,6 +264,7 @@ void *cpu_task() {
void *keyboard_task() {
struct pollfd kbdpoll[1];
int kpollrc;
char c = 0, c_code = 0, c_type = 0;
char grab_message[] = "[KBD] Grabbing keyboard from input layer\n",
ungrab_message[] = "[KBD] Ungrabbing keyboard\n";

Expand Down

0 comments on commit 3b91ccd

Please sign in to comment.