From 702c751ecfb64260c1fe6dbe1f524a99af70c608 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 24 Nov 2014 12:21:49 -0800 Subject: [PATCH] Let's not store more or less random data The backend needs to convert the firmware and serial information into a sane string - Subsurface shouldn't try to do this by itself. Signed-off-by: Dirk Hohndel --- libdivecomputer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libdivecomputer.c b/libdivecomputer.c index 9004aa87f..18cb76bea 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -438,10 +438,6 @@ static int dive_cb(const unsigned char *data, unsigned int size, } dive->dc.model = strdup(devdata->model); dive->dc.deviceid = devdata->deviceid; - /* for now copy the "made up" strings converted from the 32bit numbers that libdivecomputer gives us; - * if the dive computer backend supports the DC_FIELD_STRING interface this will later be overwritten by the correct strings */ - dive->dc.serial = copy_string(devdata->serial); - dive->dc.fw_version = copy_string(devdata->firmware); dive->dc.diveid = calculate_diveid(fingerprint, fsize); tm.tm_year = dt.year;