garmin: don't emit fake device info and vendor event
The libdivecomputer model is just broken - we don't know this information before parsing the dive. But let's not emit a fake event that generates bogus serial number data. I thought I'd be able to fill it in, but this really isn't reasonable, so disable it entirely for now. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
994efff75a
commit
6a6e60c9bb
@ -247,6 +247,7 @@ garmin_device_foreach (dc_device_t *abstract, dc_dive_callback_t callback, void
|
||||
progress.current = 0;
|
||||
device_event_emit (abstract, DC_EVENT_PROGRESS, &progress);
|
||||
|
||||
#if 0
|
||||
// Emit a device info event.
|
||||
dc_event_devinfo_t devinfo;
|
||||
devinfo.model = 0;
|
||||
@ -259,6 +260,7 @@ garmin_device_foreach (dc_device_t *abstract, dc_dive_callback_t callback, void
|
||||
vendor.data = "Garmin";
|
||||
vendor.size = 6;
|
||||
device_event_emit (abstract, DC_EVENT_VENDOR, &vendor);
|
||||
#endif
|
||||
|
||||
file = dc_buffer_new (16384);
|
||||
if (file == NULL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user