Skip to content

Commit 15a4fdf

Browse files
committed
remove unused code in bootloader
1 parent e713dab commit 15a4fdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/stm32l432/src/init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ void device_set_clock_rate(DEVICE_CLOCK_RATE param)
146146
case DEVICE_LOW_POWER_IDLE:
147147
SET_CLOCK_RATE0();
148148
break;
149+
#if !defined(IS_BOOTLOADER)
149150
case DEVICE_LOW_POWER_FAST:
150151
SET_CLOCK_RATE1();
151152
break;
152153
case DEVICE_FAST:
153154
SET_CLOCK_RATE2();
154155
break;
156+
#endif
155157
}
156158
}
157159

0 commit comments

Comments
 (0)