projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bootloaders to make the StaticAnalysis build test happy.
[pub/USBasp.git]
/
Bootloaders
/
HID
/
BootloaderHID.c
diff --git
a/Bootloaders/HID/BootloaderHID.c
b/Bootloaders/HID/BootloaderHID.c
index
2255f0f
..
acc351a
100644
(file)
--- a/
Bootloaders/HID/BootloaderHID.c
+++ b/
Bootloaders/HID/BootloaderHID.c
@@
-55,10
+55,11
@@
uint32_t MagicBootKey ATTR_NO_INIT;
*/
void Application_Jump_Check(void)
{
*/
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;
if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY))
{
MagicBootKey = 0;
+ // cppcheck-suppress constStatement
((void (*)(void))0x0000)();
}
}
((void (*)(void))0x0000)();
}
}