firmware: Statically allocate keys array

Allocating the array on the stack before initializing the stack pointer
does not work.
This commit is contained in:
Samuel Holland 2021-08-05 21:15:21 -05:00
parent 3c6488b99e
commit 246aaaa42e
1 changed files with 1 additions and 1 deletions

View File

@ -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;