aboutsummaryrefslogtreecommitdiffstats
path: root/core/divemode.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2021-08-16 20:52:00 -1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-08-18 13:22:02 -0700
commitd141bbf38fab99ea31ba45a79a95046ce152b982 (patch)
tree8948cbd768958b0457ad76a7dcb087c14084db81 /core/divemode.h
parent35adf2d72910d0cb287396b08717067d70c8ceb3 (diff)
downloadsubsurface-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/divemode.h')
0 files changed, 0 insertions, 0 deletions