mirror of
https://xff.cz/git/pinephone-keyboard
synced 2024-12-22 04:48:49 -05:00
firmware: Statically allocate keys array
Allocating the array on the stack before initializing the stack pointer does not work.
This commit is contained in:
parent
3c6488b99e
commit
246aaaa42e
@ -1851,7 +1851,7 @@ extern uint8_t _start__stack[];
|
||||
|
||||
void main(void)
|
||||
{
|
||||
uint8_t keys[12];
|
||||
static uint8_t keys[12];
|
||||
|
||||
SP = (uint8_t)_start__stack;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user