-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFabGL.patch
More file actions
65 lines (52 loc) · 2.52 KB
/
FabGL.patch
File metadata and controls
65 lines (52 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From 1e50120705370350301c64914cdefb12fbcba58e Mon Sep 17 00:00:00 2001
From: Peter Jensen <pittss2b@hotmail.com>
Date: Sat, 25 Feb 2023 17:29:36 -0800
Subject: [PATCH] Increase stack size for SCODETOVK task
---
src/comdrivers/ps2controller.cpp | 4 +++-
src/devdrivers/keyboard.h | 3 ++-
src/fabglconf.h | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/comdrivers/ps2controller.cpp b/src/comdrivers/ps2controller.cpp
index d9b9f4ea..83cdfd73 100644
--- a/src/comdrivers/ps2controller.cpp
+++ b/src/comdrivers/ps2controller.cpp
@@ -1225,7 +1225,9 @@ void PS2Controller::begin(PS2Preset preset, KbdMode keyboardMode)
case PS2Preset::KeyboardPort0:
// only keyboard configured on port 0
// this will call setKeyboard and begin()
- (new Keyboard)->begin(GPIO_NUM_33, GPIO_NUM_32, generateVirtualKeys, createVKQueue);
+ setKeyboard(new Keyboard);
+// keyboard()->begin(GPIO_NUM_33, GPIO_NUM_32, generateVirtualKeys, createVKQueue);
+ keyboard()->begin(GPIO_NUM_25, GPIO_NUM_26, generateVirtualKeys, createVKQueue);
s_keyboardAllocated = true;
break;
case PS2Preset::KeyboardPort1:
diff --git a/src/devdrivers/keyboard.h b/src/devdrivers/keyboard.h
index 4fba7ec2..e92fde5f 100644
--- a/src/devdrivers/keyboard.h
+++ b/src/devdrivers/keyboard.h
@@ -398,11 +398,12 @@ public:
*/
static int scancodeToVirtualKeyTaskStackSize;
+ VirtualKey scancodeToVK(uint8_t scancode, bool isExtended, KeyboardLayout const * layout = nullptr);
private:
- VirtualKey scancodeToVK(uint8_t scancode, bool isExtended, KeyboardLayout const * layout = nullptr);
+// VirtualKey scancodeToVK(uint8_t scancode, bool isExtended, KeyboardLayout const * layout = nullptr);
VirtualKey VKtoAlternateVK(VirtualKey in_vk, bool down, KeyboardLayout const * layout = nullptr);
VirtualKey manageCAPSLOCK(VirtualKey vk);
void updateLEDs();
diff --git a/src/fabglconf.h b/src/fabglconf.h
index 4dac3d20..c9951178 100644
--- a/src/fabglconf.h
+++ b/src/fabglconf.h
@@ -91,11 +91,11 @@
/** Stack size of the task that converts scancodes to Virtual Keys Keyboard */
-#define FABGLIB_DEFAULT_SCODETOVK_TASK_STACK_SIZE 1500
+#define FABGLIB_DEFAULT_SCODETOVK_TASK_STACK_SIZE 9182
/** Priority of the task that converts scancodes to Virtual Keys Keyboard */
-#define FABGLIB_SCODETOVK_TASK_PRIORITY 5
+#define FABGLIB_SCODETOVK_TASK_PRIORITY 6
/** Defines the underline position starting from character bottom (0 = bottom of the character). */
--
2.17.2 (Apple Git-113)