mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Fix #183 (short term fix)
This is a temporary fix for #183, so that things can build cleanly until the issue is fixed properly. If RIMESTATS_CONF_ENABLED is 0, rimestats.foo will always read as 0, since RIMESTATS_ADD(foo) doesn't do anything
This commit is contained in:
parent
6ba28bf74f
commit
12860ce5d4
@ -55,8 +55,9 @@ struct rimestats {
|
|||||||
unsigned long lltx, llrx;
|
unsigned long lltx, llrx;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if RIMESTATS_CONF_ENABLED
|
|
||||||
extern struct rimestats rimestats;
|
extern struct rimestats rimestats;
|
||||||
|
|
||||||
|
#if RIMESTATS_CONF_ENABLED
|
||||||
#define RIMESTATS_ADD(x) rimestats.x++
|
#define RIMESTATS_ADD(x) rimestats.x++
|
||||||
#else /* RIMESTATS_CONF_ENABLED */
|
#else /* RIMESTATS_CONF_ENABLED */
|
||||||
#define RIMESTATS_ADD(x)
|
#define RIMESTATS_ADD(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user