mirror of
https://xff.cz/git/pinephone-keyboard
synced 2024-10-31 15:35:02 -04: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)
|
void main(void)
|
||||||
{
|
{
|
||||||
uint8_t keys[12];
|
static uint8_t keys[12];
|
||||||
|
|
||||||
SP = (uint8_t)_start__stack;
|
SP = (uint8_t)_start__stack;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user