From 802b2fce420b620daaee4a256de15c35d858e6c3 Mon Sep 17 00:00:00 2001 From: Ben Nicholls Date: Mon, 6 Jan 2025 16:59:59 +1100 Subject: [PATCH] Revert "Regression Bug Fix: Fix Incorrect Return of MSVC-MingW portYIELD_FROM_ISR (#1207)" This reverts commit 3ddfffda048a6991f5059332e949a2ee084a5173. --- portable/MSVC-MingW/portmacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/MSVC-MingW/portmacro.h b/portable/MSVC-MingW/portmacro.h index eb94758be..288b7b037 100644 --- a/portable/MSVC-MingW/portmacro.h +++ b/portable/MSVC-MingW/portmacro.h @@ -112,7 +112,7 @@ extern volatile BaseType_t xInsideInterrupt; /* Simulated interrupts return pdFALSE if no context switch should be performed, * or a non-zero number if a context switch should be performed. */ -#define portYIELD_FROM_ISR( x ) return x +#define portYIELD_FROM_ISR( x ) ( void ) x #define portEND_SWITCHING_ISR( x ) portYIELD_FROM_ISR( ( x ) ) void vPortCloseRunningThread( void * pvTaskToDelete,