Skip to content

Commit f5fda29

Browse files
author
Daniel
committed
Fix simulator build error
1 parent 62bd622 commit f5fda29

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 ) return x
115+
#define portYIELD_FROM_ISR( x ) ( void ) x
116116
#define portEND_SWITCHING_ISR( x ) portYIELD_FROM_ISR( ( x ) )
117117

118118
void vPortCloseRunningThread( void * pvTaskToDelete,

0 commit comments

Comments
 (0)