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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue