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
Erik Strand
lufa
Commits
43097326
Commit
43097326
authored
May 05, 2012
by
Dean Camera
Browse files
Fix bootloaders to make the StaticAnalysis build test happy.
parent
0e434c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Bootloaders/CDC/BootloaderCDC.c
View file @
43097326
...
...
@@ -70,10 +70,11 @@ uint32_t MagicBootKey ATTR_NO_INIT;
*/
void
Application_Jump_Check
(
void
)
{
/
/
If the reset source was the bootloader and the key is correct, clear it and jump to the application
/
*
If the reset source was the bootloader and the key is correct, clear it and jump to the application
*/
if
((
MCUSR
&
(
1
<<
WDRF
))
&&
(
MagicBootKey
==
MAGIC_BOOT_KEY
))
{
MagicBootKey
=
0
;
// cppcheck-suppress constStatement
((
void
(
*
)(
void
))
0x0000
)();
}
}
...
...
Bootloaders/HID/BootloaderHID.c
View file @
43097326
...
...
@@ -55,10 +55,11 @@ uint32_t MagicBootKey ATTR_NO_INIT;
*/
void
Application_Jump_Check
(
void
)
{
/
/
If the reset source was the bootloader and the key is correct, clear it and jump to the application
/
*
If the reset source was the bootloader and the key is correct, clear it and jump to the application
*/
if
((
MCUSR
&
(
1
<<
WDRF
))
&&
(
MagicBootKey
==
MAGIC_BOOT_KEY
))
{
MagicBootKey
=
0
;
// cppcheck-suppress constStatement
((
void
(
*
)(
void
))
0x0000
)();
}
}
...
...
Write
Preview
Supports
Markdown
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