From 2b24ec31892153ef621008a49d664008e6018346 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 28 Feb 2008 22:43:40 +0000 Subject: [PATCH] The cc65 compiler has a bug that doesn't allow to initialize an automatic struct with references to automatic variables. Therefore I changed the timetable used for measuring the timestamping time from automatic to static - which wastes some bytes in the data segment. If this isn't generally acceptable then an #ifdef __CC65__ seems to be the appropriate approach. --- core/sys/timetable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/timetable.c b/core/sys/timetable.c index ce226acf4..100f024d0 100644 --- a/core/sys/timetable.c +++ b/core/sys/timetable.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: timetable.c,v 1.1 2008/01/17 12:19:26 adamdunkels Exp $ + * $Id: timetable.c,v 1.2 2008/02/28 22:43:40 oliverschmidt Exp $ */ /** @@ -101,7 +101,7 @@ timetable_init(void) { char dummy1, dummy2; #define temp_size 4 - TIMETABLE_NONSTATIC(temp); + TIMETABLE_STATIC(temp); timetable_clear(&temp);