mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 14:05:43 +01:00
Allow to reset to stock firmware from user firmware by holding pine+f+h
This commit is contained in:
parent
0b280ebc14
commit
21374993b3
1 changed files with 6 additions and 2 deletions
|
@ -2149,11 +2149,15 @@ void main(void)
|
|||
|
||||
// Check for Pine + F + # being held during powerup
|
||||
if ((keys[0] & BIT(2)) && (keys[4] & BIT(2))) {
|
||||
#if CONFIG_STOCK_FW
|
||||
// H - stay in main firmware
|
||||
if (keys[6] & BIT(2))
|
||||
if (keys[6] & BIT(2)) {
|
||||
#if CONFIG_STOCK_FW
|
||||
user_app_checked = 1;
|
||||
#else
|
||||
RSTSC &= ~BIT(7);
|
||||
RSTSC |= BIT(7);
|
||||
#endif
|
||||
}
|
||||
|
||||
// B - jump to USB bootloader
|
||||
if (keys[5] & BIT(3))
|
||||
|
|
Loading…
Reference in a new issue