summaryrefslogtreecommitdiffstats
path: root/core/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-11-16 22:00:26 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-17 15:29:42 +0100
commit9ec7aa7fd730da140639052e8831ff5c910fc6cb (patch)
tree7b79d0644a150aaa81165eee98c1408dc39afdc8 /core/configuredivecomputerthreads.cpp
parent7fa5fcfa1d3917f125d772708ff742f5e4b1758d (diff)
downloadsubsurface-9ec7aa7fd730da140639052e8831ff5c910fc6cb.tar.gz
Fix typo: LENGHT -> LENGTH
Diffstat (limited to 'core/configuredivecomputerthreads.cpp')
-rw-r--r--core/configuredivecomputerthreads.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp
index 994c7c411..ac4752c5a 100644
--- a/core/configuredivecomputerthreads.cpp
+++ b/core/configuredivecomputerthreads.cpp
@@ -79,7 +79,7 @@
#define SUUNTO_VYPER_ALARM_DEPTH_TIME 0x65
#define SUUNTO_VYPER_ALARM_TIME 0x66
#define SUUNTO_VYPER_ALARM_DEPTH 0x68
-#define SUUNTO_VYPER_CUSTOM_TEXT_LENGHT 30
+#define SUUNTO_VYPER_CUSTOM_TEXT_LENGTH 30
#ifdef DEBUG_OSTC
// Fake io to ostc memory banks
@@ -148,7 +148,7 @@ static void write_ostc_cf(unsigned char data[], unsigned char cf, unsigned char
static dc_status_t read_suunto_vyper_settings(dc_device_t *device, DeviceDetails *m_deviceDetails, dc_event_callback_t progress_cb, void *userdata)
{
- unsigned char data[SUUNTO_VYPER_CUSTOM_TEXT_LENGHT + 1];
+ unsigned char data[SUUNTO_VYPER_CUSTOM_TEXT_LENGTH + 1];
dc_status_t rc;
dc_event_progress_t progress;
progress.current = 0;
@@ -204,10 +204,10 @@ static dc_status_t read_suunto_vyper_settings(dc_device_t *device, DeviceDetails
m_deviceDetails->serialNo = QString::number(serial_number);
EMIT_PROGRESS();
- rc = dc_device_read(device, SUUNTO_VYPER_CUSTOM_TEXT, data, SUUNTO_VYPER_CUSTOM_TEXT_LENGHT);
+ rc = dc_device_read(device, SUUNTO_VYPER_CUSTOM_TEXT, data, SUUNTO_VYPER_CUSTOM_TEXT_LENGTH);
if (rc != DC_STATUS_SUCCESS)
return rc;
- data[SUUNTO_VYPER_CUSTOM_TEXT_LENGHT] = 0;
+ data[SUUNTO_VYPER_CUSTOM_TEXT_LENGTH] = 0;
m_deviceDetails->customText = (const char *)data;
EMIT_PROGRESS();
@@ -294,7 +294,7 @@ static dc_status_t write_suunto_vyper_settings(dc_device_t *device, DeviceDetail
rc = dc_device_write(device, SUUNTO_VYPER_CUSTOM_TEXT,
// Convert the customText to a 30 char wide padded with " "
(const unsigned char *)QString("%1").arg(m_deviceDetails->customText, -30, QChar(' ')).toUtf8().data(),
- SUUNTO_VYPER_CUSTOM_TEXT_LENGHT);
+ SUUNTO_VYPER_CUSTOM_TEXT_LENGTH);
if (rc != DC_STATUS_SUCCESS)
return rc;
EMIT_PROGRESS();