mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 14:05:43 +01:00
Allow to exit from bootloader mode without flasing
Useful for when you hit PINE+FN+F and don't want to flash a firmware. ./kbprog-usb reset
This commit is contained in:
parent
e59f647d83
commit
a8c9398567
1 changed files with 5 additions and 0 deletions
|
@ -693,6 +693,11 @@ int main(int ac, char* av[])
|
|||
{
|
||||
bootloader_fd = bootloader_open();
|
||||
|
||||
if (ac == 2 && !strcmp(av[1], "reset")) {
|
||||
cmd_software_reset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
cmd_abort();
|
||||
|
||||
printf("FW=0x%04hx BOOT=0x%04hx\n", cmd_get_ver_fw(), cmd_get_ver_spec());
|
||||
|
|
Loading…
Reference in a new issue