Skip to content

Commit

Permalink
microcoap: add patch to easily increase MAX_SEGMENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotterleben committed Mar 21, 2015
1 parent ff5633e commit d675b44
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/microcoap/0004-increment_max_segments.patch
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

0 comments on commit d675b44

Please sign in to comment.