diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-30 09:25:09 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-30 14:38:07 +1100 |
commit | 9099972c20a49a96a0abac2ff2c4b163b59c6883 (patch) | |
tree | d31e3a874f42f11e451cb35dc919c442f4ee303e /file.c | |
parent | 702493053063688e6341fc1cfc3f9450c120b4ba (diff) | |
download | subsurface-9099972c20a49a96a0abac2ff2c4b163b59c6883.tar.gz |
Make 'get_dive_by_diveid()' work even for non-primary dive computers
It's only used by the Uemis importer, and Dirk always seems to import
his Uemis data first, so it wasn't very noticeable. But if the Uemis
data wasn't the first dive computer, it would not find the dive.
Side note: just comparing deviceid is not correct. We should pass in
the device model too. But again, that will realistically never really
matter, since non-Uemis importers will generate complex SHA1 hashes of
the dive data for the dive ID, so a collision with the Uemis numbers is
very unlikely.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
0 files changed, 0 insertions, 0 deletions