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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16604#discussion_r662968505">drivers/sx127x/sx127x_netdev.c</a>:</p>
<pre style='color:#555'>> @@ -444,8 +444,8 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *val, size_t len)
         return sizeof(netopt_enable_t);
 
     case NETOPT_RX_SYMBOL_TIMEOUT:
-        assert(len <= sizeof(uint16_t));
-        sx127x_set_symbol_timeout(dev, *((const uint16_t *)val));
+        assert(len <= sizeof(uint8_t));
</pre>
<blockquote>
<p>I think this is just making sure that the value is uint8_t, as it is checking len, not val.</p>
</blockquote>
<p>Yes. This just checks that the data structure that holds <code>val</code> is not greater than 1 byte (uint8t_t)</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/16604#discussion_r662968505">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCNNEWXCSH7BL22O2TTVWUXPANCNFSM47UHH62Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYDB5ZG3B7HHY2M6VBTTVWUXPA5CNFSM47UHH622YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFGOI5OY.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/16604#discussion_r662968505",
"url": "https://github.com/RIOT-OS/RIOT/pull/16604#discussion_r662968505",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>