diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-08-16 20:52:00 -1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-08-18 13:22:02 -0700 |
commit | d141bbf38fab99ea31ba45a79a95046ce152b982 (patch) | |
tree | 8948cbd768958b0457ad76a7dcb087c14084db81 /core/gas-model.c | |
parent | 35adf2d72910d0cb287396b08717067d70c8ceb3 (diff) | |
download | subsurface-d141bbf38fab99ea31ba45a79a95046ce152b982.tar.gz |
Update the serial number and deviceid in sync when loading
When we save the divecomputer data, we never actually save the serial
value as a field. We used to rely on saving the very dodgy 'deviceid',
and then look up the serial number from there. And that never really
worked reliably, but we didn't really notice, because we never really
_used_ the serial number anywhere.
The only place the serial number is actually reliably displayed is in
the "Extra data" tab, which contains the key value pairs, and that's
where the original dive download code got the serial number from.
So just parse that at load time too, the same way we parsed it at dive
download time.
In fact, do the firmware version the same way, and remove the code from
the downloader, since it too can rely on 'add_extra_data()' just picking
up the information directly.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/gas-model.c')
0 files changed, 0 insertions, 0 deletions