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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11713#discussion_r294632565">cpu/nrf5x_common/periph/uart.c</a>:</p>
<pre style='color:#555'>> +{
+
+    if (stop_bits != UART_STOP_BITS_1 && stop_bits != UART_STOP_BITS_2) {
+        return UART_NOMODE;
+    }
+
+    if (data_bits != UART_DATA_BITS_8) {
+        return UART_NOMODE;
+    }
+
+    if (parity != UART_PARITY_NONE && parity != UART_PARITY_EVEN) {
+        return UART_NOMODE;
+    }
+
+    uart_poweroff(uart);
+    dev(uart)->ENABLE = 0;
</pre>
<p>Not sure if it is required to disable the controller before changing this. I put it in originally when things didn't work<g-emoji class="g-emoji" alias="tm" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2122.png">™️</g-emoji> as expected. It is probably not required anymore (same with the enable below)</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/11713?email_source=notifications&email_token=ABE7WYGHU2JH6M2CUXCLGTLP3CA3FA5CNFSM4HYZQP52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB32EEEY#pullrequestreview-250888723">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYESQJGYC53GW257RM3P3CA3FANCNFSM4HYZQP5Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFJA45EIIEIP3CH75TP3CA3FA5CNFSM4HYZQP52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB32EEEY.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/11713?email_source=notifications\u0026email_token=ABE7WYGHU2JH6M2CUXCLGTLP3CA3FA5CNFSM4HYZQP52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB32EEEY#pullrequestreview-250888723",
"url": "https://github.com/RIOT-OS/RIOT/pull/11713?email_source=notifications\u0026email_token=ABE7WYGHU2JH6M2CUXCLGTLP3CA3FA5CNFSM4HYZQP52YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB32EEEY#pullrequestreview-250888723",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>