From 35f7b6046e0d13b4029988a240239b12e32f95f2 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Wed, 6 Oct 2010 19:48:26 +0000 Subject: [PATCH] Fixed 'Modulo operation with zero' error by making sure that NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE is not smaller than CLOCK_CONF_SECOND. --- cpu/6502/6502def.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpu/6502/6502def.h b/cpu/6502/6502def.h index b4e93be9f..ab2756833 100644 --- a/cpu/6502/6502def.h +++ b/cpu/6502/6502def.h @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * @(#)$Id: 6502def.h,v 1.25 2010/05/30 09:46:12 oliverschmidt Exp $ + * @(#)$Id: 6502def.h,v 1.26 2010/10/06 19:48:26 oliverschmidt Exp $ */ #ifndef __6502DEF_H__ @@ -68,7 +68,8 @@ typedef unsigned short uip_stats_t; #define UIP_ARCH_ADD32 1 #define UIP_ARCH_CHKSUM 1 -#define MAC_CONF_CHANNEL_CHECK_RATE CLOCK_CONF_SECOND +#define MAC_CONF_CHANNEL_CHECK_RATE CLOCK_CONF_SECOND +#define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE CLOCK_CONF_SECOND #define LOADER_CONF_ARCH "lib/unload.h"