diff --git a/examples/sensornet/S_message.cpp b/examples/sensornet/S_message.cpp index 81a450f..f75bfb9 100644 --- a/examples/sensornet/S_message.cpp +++ b/examples/sensornet/S_message.cpp @@ -13,7 +13,7 @@ #include "RF24Network_config.h" // Project headers // This component's header -#include +#include "S_message.h" char S_message::buffer[32]; diff --git a/examples/sensornet/nodeconfig.cpp b/examples/sensornet/nodeconfig.cpp index 0cb66c2..d631d07 100644 --- a/examples/sensornet/nodeconfig.cpp +++ b/examples/sensornet/nodeconfig.cpp @@ -71,7 +71,7 @@ void nodeconfig_listen(void) eeprom_info.relay = true; printf_P(PSTR("ROLE: %S\n\r"),eeprom_info.relay ? PSTR("Relay") : PSTR("Leaf") ); if ( eeprom_info.flag == valid_eeprom_flag ) - eeprom_update_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); + eeprom_write_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); else printf_P(PSTR("Please assign an address to commit this role to EEPROM\r\n")); } @@ -80,7 +80,7 @@ void nodeconfig_listen(void) eeprom_info.relay = false; printf_P(PSTR("ROLE: %S\n\r"),eeprom_info.relay ? PSTR("Relay") : PSTR("Leaf") ); if ( eeprom_info.flag == valid_eeprom_flag ) - eeprom_update_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); + eeprom_write_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); else printf_P(PSTR("Please assign an address to commit this role to EEPROM\r\n")); } @@ -98,7 +98,7 @@ void nodeconfig_listen(void) // It is our address eeprom_info.flag = valid_eeprom_flag; eeprom_info.address = address; - eeprom_update_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); + eeprom_write_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info)); // And we are done right now (no easy way to soft reset) printf_P(PSTR("\n\rManually set to address 0%o\n\rPress RESET to continue!"),address);