<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/core, branch master</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=master</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2021-10-01T15:50:36Z</updated>
<entry>
<title>Don't access gasmix.o2.fraction</title>
<updated>2021-10-01T15:50:36Z</updated>
<author>
<name>Robert C. Helling</name>
<email>helling@atdotde.de</email>
</author>
<published>2021-10-01T13:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=41258647d232a24adca394202b44b204409b4c9f'/>
<id>urn:sha1:41258647d232a24adca394202b44b204409b4c9f</id>
<content type='text'>
Air is a special gas that does not contain oxygen according
to gasmix.o2.fraction. If you want to use the fo2, you
need to use get_o2() to treat this special case correctly.

This fixes a bug when setting the MND of a gas containing
21% oxygen when o2 is considered not narcotic.

Reported-by: Christoph Gruen &lt;gruen.christoph@gmail.com&gt;
Signed-off-by: Robert C. Helling &lt;helling@atdotde.de&gt;
</content>
</entry>
<entry>
<title>core: don't write pressure samples with "no sensor"</title>
<updated>2021-09-22T16:11:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-09-13T18:57:56Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a481cdc13d7bde8b12ef26b01b8c6722373ce0da'/>
<id>urn:sha1:a481cdc13d7bde8b12ef26b01b8c6722373ce0da</id>
<content type='text'>
This has led to broken XML files, don't do it.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: properly clear pressure data of invalid sensors</title>
<updated>2021-09-22T16:11:00Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-09-13T18:48:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d9c77a27da83d7f00254edd405406326254faae2'/>
<id>urn:sha1:d9c77a27da83d7f00254edd405406326254faae2</id>
<content type='text'>
When we found an invalid sensor (referring to a non
existing cylinder) in fixup_dive() the sensor-id was
set to NO_SENSOR.

This led to invalid XML files, because the code decides
to switch into legacy mode. However, there are two
pressure readings, which is invalid in legacy mode.

Therefore, also clear the pressure data.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>core: remove superfluous arguments</title>
<updated>2021-09-20T21:49:57Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-09-20T21:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8525b2e274cc250d7345816423c3ffa0c4e50108'/>
<id>urn:sha1:8525b2e274cc250d7345816423c3ffa0c4e50108</id>
<content type='text'>
Fixes CID 373231

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Re-do the libdivecomputer fingerprint save/load code</title>
<updated>2021-09-19T23:51:46Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-09-19T01:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=85392343fa393054ddd3446aa38c3be941eb02c5'/>
<id>urn:sha1:85392343fa393054ddd3446aa38c3be941eb02c5</id>
<content type='text'>
This tries to make our fingerprinting code work better, by avoiding
using the "deviceid" field that has always been unreliable because we've
calculated it multiple different ways, and even for the same version of
subsurface, it ends up changing in the middle (ie we calculate one value
initially, then re-calculate it when we have a proper serial number
string).

So instead, the fingerprinting code will look up and save the
fingerprint file using purely "stable" information that is available
early during the download:

 - the device model name (which is a string with vendor and product name
   separated by a space)

 - the DC_EVENT_DEVINFO 32-bit 'serial' number (which is not necessarily
   a real serial number at all, but hopefully at least a unique number
   for the particular product)

but because the model name is not necessarily a good filename (think
slashes and other possibly invalid characters), we hash that model name
and use the resulting hex number in the fingerprint file name.

This way the fingerprint file is unambiguous at load and save time, and
depends purely on libdivecomputer data.

But because we also need to verify that we have the actual _dive_
associated with that fingerprint, we also need to save the final
deviceid and diveid when saving the fingerprint file, so that when we
load it again we can look up the dive and verify that we have it before
we use the fingerprint data.

To do that, the fingerprint file itself contains not just the
fingerprint data from libdivecomputer, but the last 8 bytes of the file
are the (subsurface) deviceid and the diveid of the dive that is
associated with the fingerprint.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>core: remove location service preferences</title>
<updated>2021-09-13T18:21:34Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-09-12T00:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2a0d14b10065540d7d709950c0005bed459f5e82'/>
<id>urn:sha1:2a0d14b10065540d7d709950c0005bed459f5e82</id>
<content type='text'>
Including the related tests.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>mobile: remove GpsLocation</title>
<updated>2021-09-13T18:21:34Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-09-11T21:45:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=6f813b9f8e58a7b6529e3be728e0ae37e8401400'/>
<id>urn:sha1:6f813b9f8e58a7b6529e3be728e0ae37e8401400</id>
<content type='text'>
Only used in context of acquiring GPS locations with the mobile app, which
we no longer do.

Keep the DiveAndLocation structure around as that's needed by the
ApplyGpsFixes command.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>mobile: remove GpsListModel</title>
<updated>2021-09-13T18:21:34Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2021-09-11T21:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=bea552bf0d69e73be9a223369c72bcc122ddff08'/>
<id>urn:sha1:bea552bf0d69e73be9a223369c72bcc122ddff08</id>
<content type='text'>
This is only needed to show the list of GPS fixes obtained with
the now removed location service.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>core: fix off-by-one causing incorrect profile display</title>
<updated>2021-09-06T20:00:37Z</updated>
<author>
<name>Josh Torres</name>
<email>torres.josh.j@gmail.com</email>
</author>
<published>2021-09-06T00:07:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=7e6d9935f13db00ebb980c9d286c7bab0fea8a15'/>
<id>urn:sha1:7e6d9935f13db00ebb980c9d286c7bab0fea8a15</id>
<content type='text'>
In commit 4724c88 get_plot_details_new was updated to pass an index
instead of the entry into plot_string. This means we are passing "i" to
plot_string after the final increment of the for loop, instead of
getting the entry[i] within the loop before the final increment. This
means if we are mousing over the far right of the graph, where the time
based break is not hit, we will end up passing an index equal to nr-2
instead of nr-3, which is intended to shave off the final two rows
containing data not useful to the display.

There are a handful of ways to fix this. This commit intends to be
consistent with stylistic choices made elsewhere in the project.

Signed-off-by: Josh Torres &lt;torres.josh.j@gmail.com&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>core: add a function to test for sensors of a given cylinder</title>
<updated>2021-09-03T20:35:28Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2021-09-02T16:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=28fe6a7b3856f1359f875f9d53d4c64e7dc1ea15'/>
<id>urn:sha1:28fe6a7b3856f1359f875f9d53d4c64e7dc1ea15</id>
<content type='text'>
We want to prevent the user from accidentally deleting a
cylinder with sensor readings. Therefore, we need such a
function.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
