Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
be854e63
Commit
be854e63
authored
May 12, 2019
by
schneider
Browse files
fix(bootloader): Add GPIO1 as trigger option
parent
598d3378
Changes
1
Hide whitespace changes
Inline
Side-by-side
bootloader/main.c
View file @
be854e63
...
...
@@ -179,8 +179,7 @@ int main(void)
printf
(
"
\n\n
Bootloader
\n
"
);
// If the button is pressed, we go into MSC mode.
//if (!GPIO_InGet(&gpio_in)) {
if
(
PB_Get
(
0
))
{
if
(
PB_Get
(
0
)
||
PB_Get
(
1
))
{
run_usbmsc
();
// If we return, don't try to boot. Maybe rather trigger a software reset.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment