mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
divecomputer: add device_table pointer to device_data_t
In one weird case (suunto), the code in libdivecomputer.c generates a device node directly instead of going the usual way (setting the data in the dc-structure of the imported dive). It is unclear to me whether that has to be that way, as it depends on the chronological order of callbacks to event_cb() and dive_cb(). Therefore add a device_table pointer to device_data_t so that the downloader can add the device to this table. This only adds the pointer, but does not yet use it in the downloading code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5a19437311
commit
2bcb3d88a0
5 changed files with 9 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <QLoggingCategory>
|
||||
|
||||
#include "divesite.h"
|
||||
#include "device.h"
|
||||
#include "libdivecomputer.h"
|
||||
#include "connectionlistmodel.h"
|
||||
#if BT_SUPPORT
|
||||
|
|
@ -77,6 +78,7 @@ public:
|
|||
QString error;
|
||||
struct dive_table downloadTable;
|
||||
struct dive_site_table diveSiteTable;
|
||||
struct device_table deviceTable;
|
||||
|
||||
private:
|
||||
DCDeviceData *m_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue