Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/sensornet/S_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "RF24Network_config.h"
// Project headers
// This component's header
#include <S_message.h>
#include "S_message.h"

char S_message::buffer[32];

Expand Down
6 changes: 3 additions & 3 deletions examples/sensornet/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand All @@ -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"));
}
Expand All @@ -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);
Expand Down