mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
b493a9967e
commit
702c751ecf
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue