Skip to content

Commit 21fcb68

Browse files
committed
fix the use of ifdef in testing CIRCUITPY_STATUS_LED
1 parent e79e83e commit 21fcb68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

supervisor/shared/bluetooth/bluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void supervisor_bluetooth_init(void) {
229229
}
230230
#endif
231231
while (diff < 1000) {
232-
#ifdef CIRCUITPY_STATUS_LED
232+
#if CIRCUITPY_STATUS_LED
233233
// Blink on for 50 and off for 100
234234
bool led_on = boot_in_discovery_mode || (diff % 150) <= 50;
235235
if (led_on) {

supervisor/shared/safe_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ safe_mode_t wait_for_safe_mode_reset(void) {
6969
uint64_t diff = 0;
7070
bool boot_in_safe_mode = false;
7171
while (diff < 1000) {
72-
#ifdef CIRCUITPY_STATUS_LED
72+
#if CIRCUITPY_STATUS_LED
7373
// Blink on for 100, off for 100
7474
bool led_on = (diff % 250) < 125;
7575
if (led_on) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy