Updated debug output
This commit is contained in:
parent
94f8978443
commit
7fcb1f3b2a
1 changed files with 5 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: rucb.c,v 1.4 2007/11/28 20:03:50 adamdunkels Exp $
|
* $Id: rucb.c,v 1.5 2008/01/14 09:36:35 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,7 +71,8 @@ static void
|
||||||
acked(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
|
acked(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
|
||||||
{
|
{
|
||||||
struct rucb_conn *c = (struct rucb_conn *)ruc;
|
struct rucb_conn *c = (struct rucb_conn *)ruc;
|
||||||
PRINTF("acked\n");
|
PRINTF("%d.%d: rucb acked\n",
|
||||||
|
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
|
||||||
c->chunk++;
|
c->chunk++;
|
||||||
if(read_data(c) > 0) {
|
if(read_data(c) > 0) {
|
||||||
ruc_send(&c->c, &c->receiver, MAX_TRANSMISSIONS);
|
ruc_send(&c->c, &c->receiver, MAX_TRANSMISSIONS);
|
||||||
|
@ -82,7 +83,8 @@ static void
|
||||||
timedout(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
|
timedout(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
|
||||||
{
|
{
|
||||||
struct rucb_conn *c = (struct rucb_conn *)ruc;
|
struct rucb_conn *c = (struct rucb_conn *)ruc;
|
||||||
PRINTF("timedout\n");
|
PRINTF("%d.%d: rucb timedout\n",
|
||||||
|
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
|
||||||
if(c->u->timedout) {
|
if(c->u->timedout) {
|
||||||
c->u->timedout(c);
|
c->u->timedout(c);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue