mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the new DC_FIELD_STRING callback if it exists
This recognizes recognize some strigns (serial number and firmware version), and the ones that it doesn't recognize it adds as extra data using Dirk's new interface. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cff413f14d
commit
0a27978014
3 changed files with 52 additions and 1 deletions
4
dive.c
4
dive.c
|
@ -1129,6 +1129,10 @@ static void fixup_dive_dc(struct dive *dive, struct divecomputer *dc)
|
|||
int pressure_delta[MAX_CYLINDERS] = { INT_MAX, };
|
||||
int first_cylinder;
|
||||
|
||||
/* Add device information to table */
|
||||
if (dc->deviceid && (dc->serial || dc->fw_version))
|
||||
create_device_node(dc->model, dc->deviceid, dc->serial, dc->fw_version, "");
|
||||
|
||||
/* Fixup duration and mean depth */
|
||||
fixup_dc_duration(dc);
|
||||
update_min_max_temperatures(dive, dc->watertemp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue