mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Update Mares IconHd parsing to current libdivecomputer interface
The libdivecomputer interfaces are pure crap. There are no generic "open the dive computer" or "create a parser for the dive computer" interfaces, instead each dive computer you support has its own open and parser generator interface. And they change. Happily fairly seldom, but they change. And two days ago, Jef changed the interface for the Mares Icon HD computer in order to support the newer HD Net Ready variant. I've asked Jef to make a sane interface for "open the dive computer" and "just create the parser" for libdivecomputer, but he claims that he cannot just track the device model details internally. Which is obviously a completely bogus claim, since the way *we* track the model details is to just feed it back from the silly event. libdivecomputer should just do that internally and not bother us with its crazy internal model numbers. But whatever. In the meantime, work around this braindamage, and hope that libdivecomputer comes to its senses some day. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5c8305588b
commit
8eeeb97b85
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ static parser_status_t create_parser(device_data_t *devdata, parser_t **parser)
|
|||
return mares_nemo_parser_create(parser, devdata->devinfo.model);
|
||||
|
||||
case DEVICE_TYPE_MARES_ICONHD:
|
||||
return mares_iconhd_parser_create(parser);
|
||||
return mares_iconhd_parser_create(parser, devdata->devinfo.model);
|
||||
|
||||
case DEVICE_TYPE_HW_OSTC:
|
||||
return hw_ostc_parser_create(parser);
|
||||
|
|
Loading…
Add table
Reference in a new issue