From 9b20f11cd8d9f1d7565bf63298e552537b13f1af Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 13 Nov 2009 09:14:52 +0000 Subject: [PATCH] chameleon returns 1 only on successful rime_output() --- core/net/rime/chameleon.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/net/rime/chameleon.c b/core/net/rime/chameleon.c index cc7100750..e35385744 100644 --- a/core/net/rime/chameleon.c +++ b/core/net/rime/chameleon.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: chameleon.c,v 1.6 2009/03/12 21:58:20 adamdunkels Exp $ + * $Id: chameleon.c,v 1.7 2009/11/13 09:14:52 fros4943 Exp $ */ /** @@ -141,8 +141,10 @@ chameleon_output(struct channel *c) printhdr(packetbuf_hdrptr(), packetbuf_hdrlen()); #endif /* DEBUG */ if(ret) { - rime_output(); - return 1; + if (rime_output() == RIME_OK) { + return 1; + } + return 0; } } return 0;