diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-24 12:21:49 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-24 12:21:49 -0800 |
commit | 702c751ecfb64260c1fe6dbe1f524a99af70c608 (patch) | |
tree | 8ec19bd3a04494d423a0c9ebba85bb44acbe35dd /libdivecomputer.c | |
parent | b493a9967e32b770d13c34e5c4dc2c7fc470d1b6 (diff) | |
download | subsurface-702c751ecfb64260c1fe6dbe1f524a99af70c608.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 4 |
1 files changed, 0 insertions, 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; |