/* Restore the "system address" and "host ID" from NV memory.  */
static bool gzp_params_restore(void)
/* Restore the "system address" and "host ID" from NV memory.  */
static bool gzp_params_restore(void)
{
    uint8_t i;
    uint8_t temp_element[GZP_PARAMS_DB_ELEMENT_SIZE];
    if(!gzp_index_db_full() && !gzp_index_db_empty())
    {
        i = gzp_index_db_read();
        if(i < GZP_PARAMS_DB_MAX_ENTRIES)
        {
            gzp_params_db_read(temp_element, i);
            memcpy(gzp_system_address, &temp_element[GZP_PARAMS_DB_ELEMENT_SYSTEM_ADDRESS], GZP_SYSTEM_ADDRESS_WIDTH);
            gzp_set_host_id(&temp_element[GZP_PARAMS_DB_ELEMENT_HOST_ID]);
            return true;
        }
    }
    return false;
}