-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microcoap: add patch to easily increase MAX_SEGMENTS
- Loading branch information
1 parent
ff5633e
commit d675b44
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 56dd59b911055fa045738d74e9aa5089dc37a0e5 Mon Sep 17 00:00:00 2001 | ||
From: Lotte Steenbrink <lotte@zombietetris.de> | ||
Date: Tue, 17 Mar 2015 10:42:02 -0700 | ||
Subject: [PATCH] increment MAX_SEGMENTS | ||
|
||
--- | ||
coap.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/coap.h b/coap.h | ||
index 9090285..6839846 100644 | ||
--- a/coap.h | ||
+++ b/coap.h | ||
@@ -131,7 +131,7 @@ typedef enum | ||
/////////////////////// | ||
|
||
typedef int (*coap_endpoint_func)(coap_rw_buffer_t *scratch, const coap_packet_t *inpkt, coap_packet_t *outpkt, uint8_t id_hi, uint8_t id_lo); | ||
-#define MAX_SEGMENTS 2 // 2 = /foo/bar, 3 = /foo/bar/baz | ||
+#define MAX_SEGMENTS 3 // 2 = /foo/bar, 3 = /foo/bar/baz | ||
typedef struct | ||
{ | ||
int count; | ||
-- | ||
1.9.1 | ||
|