On 18 October, 2014 - Anton Lundin wrote: > The OSTC3 stores the pressure sensor offset as a signed 8-bit integer. > > Signed-off-by: Anton Lundin <[email protected]> > --- > configuredivecomputerthreads.cpp | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/configuredivecomputerthreads.cpp > b/configuredivecomputerthreads.cpp > index a8465d7..57bb122 100644 > --- a/configuredivecomputerthreads.cpp > +++ b/configuredivecomputerthreads.cpp ... > @@ -423,6 +422,13 @@ void ReadSettingsThread::run() > > #undef READ_SETTING > > + rc = hw_ostc3_device_config_read(m_data->device, > OSTC3_PRESSURE_SENSOR_OFFSET, uData, sizeof(uData)); > + if (rc == DC_STATUS_SUCCESS) { > + // OSTC3 stores the pressureSensorOffset in > two-complement > + > m_deviceDetails->setPressureSensorOffset((signed char) uData[0]); > + qDebug() << > m_deviceDetails->pressureSensorOffset() << uData[0];
Stray qDebug() from writing this. Please drop this one before applying, or poke me for a re-roll if you would like that. //Anton -- Anton Lundin +46702-161604 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
