<p><b>@JulianHolzwarth</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11239#discussion_r308828012">cpu/esp32/freertos/semphr.c</a>:</p>
<pre style='color:#555'>> @@ -94,7 +94,7 @@ BaseType_t xSemaphoreTake (SemaphoreHandle_t xSemaphore,
         case queueQUEUE_TYPE_MUTEX:
         {
             if (xTicksToWait == 0) {
-                return (mutex_trylock(mutex) == 0) ? pdTRUE : pdFALSE;
+                return (mutex_trylock(mutex) == 1) ? pdPASS : pdFAIL;
</pre>
<p>I was looking at the Reference Manual. It gave me more information about the function.<br>
<a href="https://www.freertos.org/wp-content/uploads/2018/07/FreeRTOS_Reference_Manual_V10.0.0.pdf" rel="nofollow">https://www.freertos.org/wp-content/uploads/2018/07/FreeRTOS_Reference_Manual_V10.0.0.pdf</a></p>
<p>Linked from here:<br>
<a href="https://www.freertos.org/Documentation/RTOS_book.html" rel="nofollow">https://www.freertos.org/Documentation/RTOS_book.html</a></p>
<p>If you like <code>PdTrue</code> more I will change it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11239?email_source=notifications&email_token=ABE7WYBH5ZUZULO2ZT5DC2DQCBVX7A5CNFSM4HAPM3MKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCAAWDWQ#discussion_r308828012">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYC6WFXC2VZLVI6NB53QCBVX7ANCNFSM4HAPM3MA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYDVVI6R42GUO2BVNJ3QCBVX7A5CNFSM4HAPM3MKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCAAWDWQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11239?email_source=notifications\u0026email_token=ABE7WYBH5ZUZULO2ZT5DC2DQCBVX7A5CNFSM4HAPM3MKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCAAWDWQ#discussion_r308828012",
"url": "https://github.com/RIOT-OS/RIOT/pull/11239?email_source=notifications\u0026email_token=ABE7WYBH5ZUZULO2ZT5DC2DQCBVX7A5CNFSM4HAPM3MKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCAAWDWQ#discussion_r308828012",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>