diff options
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index c5864d6f5..5b9abc341 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -830,11 +830,8 @@ static void try_to_fill_dc(struct divecomputer *dc, const char *name, char *buf, return; if (MATCH("model", utf8_string, &dc->model)) return; - if (MATCH("deviceid", hex_value, &deviceid)) { - set_dc_deviceid(dc, deviceid, &device_table); // prefer already known serial/firmware over those from the loaded log - set_dc_deviceid(dc, deviceid, state->devices); + if (MATCH("deviceid", hex_value, &deviceid)) return; - } if (MATCH("diveid", hex_value, &dc->diveid)) return; if (MATCH("dctype", get_dc_type, &dc->divemode)) |