This is an automated email from the ASF dual-hosted git repository.

mlaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git


The following commit(s) were added to refs/heads/master by this push:
     new bae5b0c  Default CBORATTR_MAX_SIZE if CONFIG_MGMT_CBORATTR_MAX_SIZE is 
not defined.
     new ca049eb  Merge pull request #57 from mlaz/cborattr_max_default
bae5b0c is described below

commit bae5b0c581cf6e97baf092a9d2b69389fae6d8c9
Author: Miguel Azevedo <miguella...@gmail.com>
AuthorDate: Mon Jan 20 18:26:37 2020 +0000

    Default CBORATTR_MAX_SIZE if CONFIG_MGMT_CBORATTR_MAX_SIZE is not defined.
---
 cborattr/src/cborattr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cborattr/src/cborattr.c b/cborattr/src/cborattr.c
index e94a490..395c2ec 100644
--- a/cborattr/src/cborattr.c
+++ b/cborattr/src/cborattr.c
@@ -23,7 +23,11 @@
 
 #ifdef __ZEPHYR__
 #include <zephyr.h>
+#ifdef CONFIG_MGMT_CBORATTR_MAX_SIZE
 #define CBORATTR_MAX_SIZE CONFIG_MGMT_CBORATTR_MAX_SIZE
+#else
+#define CBORATTR_MAX_SIZE 512
+#endif
 #endif
 
 #ifdef MYNEWT

Reply via email to