Skip to content

Commit c116851

Browse files
authored
fix #if guard
1 parent 0285d58 commit c116851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2_common/pico_flash/flash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static int default_enter_safe_zone_timeout_ms(__unused uint32_t timeout_ms) {
147147
TaskHandle_t task_handle;
148148

149149
// when FreeRTOS dynamic allocation is disabled (configSUPPORT_DYNAMIC_ALLOCATION == 0), the following instruction fails
150-
#ifndef configSUPPORT_DYNAMIC_ALLOCATION
150+
#if configSUPPORT_DYNAMIC_ALLOCATION
151151
if (pdPASS != xTaskCreateAffinitySet(flash_lockout_task, "flash lockout", configMINIMAL_STACK_SIZE, (void *)core_num, 0, 1u << (core_num ^ 1), &task_handle)) {
152152
#else
153153
static StackType_t flash_lockout_stack[configMINIMAL_STACK_SIZE];
@@ -227,4 +227,4 @@ static int default_exit_safe_zone_timeout_ms(__unused uint32_t timeout_ms) {
227227
#endif
228228
}
229229
return PICO_OK;
230-
}
230+
}

0 commit comments

Comments
 (0)