nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 12/31: Fixed SocketCAN IOB default config and IOB typos
Date Thu, 23 Apr 2020 13:31:17 GMT
This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch SocketCAN
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1f93523a8811607dca3155b1ef1893a0f61ec744
Author: Peter van der Perk <peter.vanderperk@nxp.com>
AuthorDate: Thu Mar 5 09:49:41 2020 +0100

    Fixed SocketCAN IOB default config and IOB typos
---
 net/can/Kconfig        | 2 ++
 net/can/can_callback.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/net/can/Kconfig b/net/can/Kconfig
index 2272db7..d5b6dbd 100644
--- a/net/can/Kconfig
+++ b/net/can/Kconfig
@@ -8,6 +8,8 @@ menu "SocketCAN Support"
 config NET_CAN
 	bool "SocketCAN support"
 	default n
+	select NET_READAHEAD
+	depends on NET
 	---help---
 		Enable support for SocketCAN sockets that will permit.
 
diff --git a/net/can/can_callback.c b/net/can/can_callback.c
index 0f60b6a..7b923d3 100644
--- a/net/can/can_callback.c
+++ b/net/can/can_callback.c
@@ -196,7 +196,7 @@ uint16_t can_datahandler(FAR struct can_conn_s *conn, FAR uint8_t *buffer,
   if (ret < 0)
     {
       nerr("ERROR: Failed to queue the I/O buffer chain: %d\n", ret);
-      iob_free_chain(iob, IOBUSER_NET_TCP_READAHEAD);
+      iob_free_chain(iob, IOBUSER_NET_CAN_READAHEAD);
       return 0;
     }
 


Mime
View raw message