Skip to content

Commit 21f3a0d

Browse files
committed
remove hacker constraint for booting into bootloader
1 parent b535b41 commit 21f3a0d

File tree

1 file changed

+1
-6
lines changed
  • targets/stm32l432/bootloader

1 file changed

+1
-6
lines changed

targets/stm32l432/bootloader/main.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ int main()
4646
{
4747
uint8_t hidmsg[64];
4848
uint32_t t1 = 0;
49-
#ifdef SOLO_HACKER
5049
uint32_t stboot_time = 0;
51-
#endif
5250
uint32_t boot = 1;
5351

5452
set_logging_mask(
@@ -98,7 +96,6 @@ int main()
9896
}
9997

10098

101-
#ifdef SOLO_HACKER
10299
if (!is_bootloader_disabled())
103100
{
104101
stboot_time = millis();
@@ -108,7 +105,6 @@ int main()
108105
goto start_bootloader;
109106
}
110107
}
111-
#endif
112108

113109
if (is_authorized_to_boot() && (boot || is_bootloader_disabled()))
114110
{
@@ -119,9 +115,8 @@ int main()
119115

120116
printf1(TAG_RED,"Not authorized to boot (%08x == %08lx)\r\n", AUTH_WORD_ADDR, *(uint32_t*)AUTH_WORD_ADDR);
121117
}
122-
#ifdef SOLO_HACKER
123118
start_bootloader:
124-
#endif
119+
125120
SystemClock_Config();
126121
init_gpio();
127122
init_millisecond_timer(0);

0 commit comments

Comments
 (0)