Fixed compilation problems on the micaz and exp5438 platforms due to the node-id change

This commit is contained in:
Adam Dunkels 2012-11-20 21:15:55 +01:00
parent 5a1661dfbf
commit e178787999
2 changed files with 5 additions and 2 deletions

View file

@ -67,6 +67,8 @@
#define PRINTF(...)
#endif
extern unsigned char node_mac[8];
//SENSORS(&button_sensor);
/*---------------------------------------------------------------------------*/
#ifndef RF_CHANNEL

View file

@ -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;