Merge pull request #39 from adamdunkels/node-id
Fixed node-id compilation problems on the micaz and exp5438 platforms
This commit is contained in:
commit
39919655df
|
@ -67,6 +67,8 @@
|
|||
#define PRINTF(...)
|
||||
#endif
|
||||
|
||||
extern unsigned char node_mac[8];
|
||||
|
||||
//SENSORS(&button_sensor);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifndef RF_CHANNEL
|
||||
|
|
|
@ -31,9 +31,10 @@
|
|||
* @(#)$$
|
||||
*/
|
||||
|
||||
#include "contiki-conf.h"
|
||||
#include "sys/node-id.h"
|
||||
|
||||
uint16_t node_id = 0;
|
||||
unsigned short node_id = 0;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
|
@ -50,7 +51,7 @@ node_id_restore(void)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
node_id_burn(uint16_t id)
|
||||
node_id_burn(unsigned short id)
|
||||
{
|
||||
uint16_t buffer[2] = { 0xdead, id };
|
||||
uint8_t volatile sreg;
|
||||
|
|
Loading…
Reference in a new issue