moved eeprom calls out of dlmstp.c

This commit is contained in:
skarg
2012-09-29 20:34:42 +00:00
parent 2f8551d2e9
commit 75727604df
3 changed files with 61 additions and 102 deletions
@@ -81,9 +81,15 @@ void bacnet_init(
void)
{
uint32_t device_id = 0;
uint8_t max_master = 0;
MSTP_MAC_Address = input_address();
dlmstp_set_mac_address(MSTP_MAC_Address);
eeprom_bytes_read(NV_EEPROM_MAX_MASTER, &max_master, 1);
if (max_master > 127) {
max_master = 127;
}
dlmstp_set_max_master(max_master);
dlmstp_init(NULL);
/* test for valid data structure in SEEPROM */
if (!seeprom_version_test()) {