Skip to content

Commit

Permalink
More messaging around node config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Aug 21, 2013
1 parent b550786 commit 5042b2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/sensornet/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void nodeconfig_listen(void)
eeprom_info.relay = true;
printf_P(PSTR("ROLE: %S\n\r"),eeprom_info.relay ? PSTR("Relay") : PSTR("Leaf") );
eeprom_update_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info));
printf_P(PSTR("RESET NODE before changes take effect\r\n"));
if ( ! eeprom_info.isValid() )
printf_P(PSTR("Please assign an address\r\n"));
}
Expand All @@ -77,6 +78,7 @@ void nodeconfig_listen(void)
eeprom_info.relay = false;
printf_P(PSTR("ROLE: %S\n\r"),eeprom_info.relay ? PSTR("Relay") : PSTR("Leaf") );
eeprom_update_block(&eeprom_info,address_at_eeprom_location,sizeof(eeprom_info));
printf_P(PSTR("RESET NODE before changes take effect\r\n"));
if ( ! eeprom_info.isValid() )
printf_P(PSTR("Please assign an address\r\n"));
}
Expand Down

0 comments on commit 5042b2c

Please sign in to comment.