Skip to content

Commit

Permalink
Added an error message if no good address is found
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jun 11, 2011
1 parent 1429fa0 commit 108dd5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/meshping/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ uint8_t nodeconfig_read(void)
{
// Read the address from EEPROM
result = eeprom_read_byte(address_at_eeprom_location+1);
printf_P(PSTR("ADDRESS: %u\n\r"),result);
}
else
{
printf_P(PSTR("*** No valid address found. Send 1-9 via serial to set node address\n\r"));
}

printf_P(PSTR("ADDRESS: %u\n\r"),result);

return result;
}
Expand Down

0 comments on commit 108dd5e

Please sign in to comment.