Commit c2b23c56 authored by schneider's avatar schneider
Browse files

fix(bootlader): Use push button subsystem

parent 17e112cd
......@@ -178,16 +178,9 @@ int main(void)
gpio_cfg_t gpio_in;
gpio_in.port = GPIO_PORT_IN;
gpio_in.mask = GPIO_PIN_IN;
gpio_in.pad = GPIO_PAD_PULL_UP;
gpio_in.func = GPIO_FUNC_IN;
// If the button is pressed, we go into MSC mode.
if (!GPIO_InGet(&gpio_in)) {
//if (!GPIO_InGet(&gpio_in)) {
if (PB_Get(0)) {
// If we return, don't try to boot. Maybe rather trigger a software reset.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment