[riot-notifications] [RIOT-OS/RIOT] sx127x: ignore empty iolist element (#11215)

José Alamos notifications at github.com
Wed Mar 27 11:03:50 CET 2019


jia200x commented on this pull request.



> @@ -54,6 +54,11 @@ static int _send(netdev_t *netdev, const iolist_t *iolist)
 
     uint8_t size = iolist_size(iolist);
 
+    /* Ignore send if packet size is 0 */
+    if (size == 0) {
+        return 0;
+    }

I added it just to avoid the SPI calls in case of empty packet

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11215#discussion_r269482976
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190327/6b6f87e2/attachment.html>


More information about the notifications mailing list