changeset 3245:a4db689e3f65

* src/can_lpc2xxx.c: Changed return code for message filter configuration to -ENOSPC if no filters are available to match documentation change.
author sergeig
date Thu, 06 Jun 2013 20:31:25 +0000
parents f6140ea7e34d
children 0e1564740f6b
files packages/devs/can/arm/lpc2xxx/current/ChangeLog packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/can/arm/lpc2xxx/current/ChangeLog
+++ b/packages/devs/can/arm/lpc2xxx/current/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-06  Uwe Kindler <uwe_kindler@web.de>
+
+	* src/can_lpc2xxx.c: Changed return code for message filter
+	configuration to -ENOSPC if no filters are available to match
+	documentation change.
+
 2012-01-25  Bernard Fouché <bernard.fouche@kuantic.com>
 
 	* Changes made to support CAN IO package update:
--- a/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c
+++ b/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c
@@ -1166,7 +1166,7 @@ static Cyg_ErrNo lpc2xxx_can_config_msgb
                  //
                  if (!lpc2xxx_can_add_rx_filter(info, filter))
                  {
-                     return -EPERM;
+                     return -ENOSPC;
                  }
              }
              break; //CYGNUM_CAN_MSGBUF_RX_FILTER_ADD
@@ -1336,7 +1336,7 @@ static Cyg_ErrNo lpc2xxx_can_config_accf
 #ifdef CYGDBG_DEVS_CAN_LPC2XXX_DEBUG
     lpc2xxx_can_accfilt_dbg_dump();
 #endif        
-    return res ? ENOERR : -EPERM;
+    return res ? ENOERR : -ENOSPC;
 }
 #endif // CYGOPT_DEVS_CAN_RANGE_FILTERING_CFG_KEYS