[riot-notifications] [RIOT-OS/RIOT] at86rf2xx: unable to send packets with empty payloads (#11163)
notifications at github.com
Tue Mar 12 17:14:50 CET 2019
I'd say that (1) and (2) are internal APIs, so the can simply expect `len != 0`, as every caller of that API is "under our control" and can be checked and fixed by us. But I'd say (3) is a global API and should be prepared to be called with list elements that have `len == 0`. (Keeping in mind that this case is something that will only happen under rare circumstances, someone using that API will unlikely test for that. Treating `len == 0` gracefully there can potentially prevent a lot of pain and debugging when other code than GNRC uses the driver.)
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications