Skip to content

Commit 3ddfffd

Browse files
authored
Regression Bug Fix: Fix Incorrect Return of MSVC-MingW portYIELD_FROM_ISR (#1207)
There is a regression issue introduced in cfc2688. This PR was intended to update MIT licensed header from v9 to v10. But it accidentally changed "portYIELD_FROM_ISR( x )" in MSVC-MingW/portmacro.h. It caused "portYIELD_FROM_ISR( x )" does not return correct value to "prvProcessSimulatedInterrupts".
1 parent b58005a commit 3ddfffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portable/MSVC-MingW/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ extern volatile BaseType_t xInsideInterrupt;
112112

113113
/* Simulated interrupts return pdFALSE if no context switch should be performed,
114114
* or a non-zero number if a context switch should be performed. */
115-
#define portYIELD_FROM_ISR( x ) ( void ) x
115+
#define portYIELD_FROM_ISR( x ) return x
116116
#define portEND_SWITCHING_ISR( x ) portYIELD_FROM_ISR( ( x ) )
117117

118118
void vPortCloseRunningThread( void * pvTaskToDelete,

0 commit comments

Comments
 (0)