- update m2s for non-payload
authorBart Polot <bart@net.in.tum.de>
Tue, 24 Jun 2014 15:17:34 +0000 (15:17 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 24 Jun 2014 15:17:34 +0000 (15:17 +0000)
src/cadet/cadet_common.c

index b1d0501b2bc8d7d96e8346916e83d86d5a63c066..eb6d2c2834eb7f5add8032d74e6b9e75fe0e42b4 100644 (file)
@@ -110,6 +110,12 @@ GC_m2s (uint16_t m)
   idx = (idx + 1) % 2;
   switch (m)
   {
+    /**
+     * Used to mark the "payload" of a non-payload message.
+     */
+    case 0:
+      return "";
+
       /**
        * Request the creation of a path
        */