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>
This commit is contained in:
Dirk Hohndel 2014-11-24 12:21:49 -08:00
parent b493a9967e
commit 702c751ecf

View file

@ -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;