mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-14 09:28:59 +00:00
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.
This commit is contained in:
parent
20dc5ee52f
commit
2b24ec3189
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user