diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ble/DfuService.cpp | 2 | ||||
-rw-r--r-- | src/components/ble/FSService.cpp | 12 | ||||
-rw-r--r-- | src/displayapp/LittleVgl.cpp | 4 | ||||
-rwxr-xr-x | src/displayapp/fonts/generate.py | 2 | ||||
-rw-r--r-- | src/displayapp/screens/Screen.h | 2 | ||||
-rw-r--r-- | src/drivers/Bma421_C/bma4.c | 4 | ||||
-rw-r--r-- | src/drivers/Bma421_C/bma4_defs.h | 2 | ||||
-rw-r--r-- | src/sdk_config.h | 18 | ||||
-rw-r--r-- | src/systemtask/SystemTask.cpp | 2 |
9 files changed, 24 insertions, 24 deletions
diff --git a/src/components/ble/DfuService.cpp b/src/components/ble/DfuService.cpp index 77dbe2eb..1f06b69e 100644 --- a/src/components/ble/DfuService.cpp +++ b/src/components/ble/DfuService.cpp @@ -246,7 +246,7 @@ int DfuService::ControlPointHandler(uint16_t connectionHandle, os_mbuf* om) { NRF_LOG_INFO("[DFU] -> Receive firmware image requested, but we are not in Start Init"); return 0; } - // TODO the chunk size is dependant of the implementation of the host application... + // TODO the chunk size is dependent of the implementation of the host application... dfuImage.Init(20, applicationSize, expectedCrc); NRF_LOG_INFO("[DFU] -> Starting receive firmware"); state = States::Data; diff --git a/src/components/ble/FSService.cpp b/src/components/ble/FSService.cpp index 8dc9ed67..fda6b392 100644 --- a/src/components/ble/FSService.cpp +++ b/src/components/ble/FSService.cpp @@ -81,7 +81,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { return -1; } memcpy(filepath, header->pathstr, plen); - filepath[plen] = 0; // Copy and null teminate string + filepath[plen] = 0; // Copy and null terminate string ReadResponse resp; os_mbuf* om; resp.command = commands::READ_DATA; @@ -148,7 +148,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { return -1; // TODO make this actually return a BLE notif } memcpy(filepath, header->pathstr, plen); - filepath[plen] = 0; // Copy and null teminate string + filepath[plen] = 0; // Copy and null terminate string fileSize = header->totalSize; WriteResponse resp; resp.command = commands::WRITE_PACING; @@ -193,7 +193,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { uint16_t plen = header->pathlen; char path[plen + 1] = {0}; memcpy(path, header->pathstr, plen); - path[plen] = 0; // Copy and null teminate string + path[plen] = 0; // Copy and null terminate string DelResponse resp {}; resp.command = commands::DELETE_STATUS; int res = fs.FileDelete(path); @@ -208,7 +208,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { uint16_t plen = header->pathlen; char path[plen + 1] = {0}; memcpy(path, header->pathstr, plen); - path[plen] = 0; // Copy and null teminate string + path[plen] = 0; // Copy and null terminate string MKDirResponse resp {}; resp.command = commands::MKDIR_STATUS; resp.modification_time = 0; @@ -223,7 +223,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { ListDirHeader* header = (ListDirHeader*) om->om_data; uint16_t plen = header->pathlen; char path[plen + 1] = {0}; - path[plen] = 0; // Copy and null teminate string + path[plen] = 0; // Copy and null terminate string memcpy(path, header->pathstr, plen); ListDirResponse resp {}; @@ -290,7 +290,7 @@ int FSService::FSCommandHandler(uint16_t connectionHandle, os_mbuf* om) { header->pathstr[plen] = 0; char path[header->NewPathLength + 1] = {0}; memcpy(path, &header->pathstr[plen + 1], header->NewPathLength); - path[header->NewPathLength] = 0; // Copy and null teminate string + path[header->NewPathLength] = 0; // Copy and null terminate string MoveResponse resp {}; resp.command = commands::MOVE_STATUS; int8_t res = (int8_t) fs.Rename(header->pathstr, path); diff --git a/src/displayapp/LittleVgl.cpp b/src/displayapp/LittleVgl.cpp index f401f524..64c99261 100644 --- a/src/displayapp/LittleVgl.cpp +++ b/src/displayapp/LittleVgl.cpp @@ -94,8 +94,8 @@ void LittleVgl::FlushDisplay(const lv_area_t* area, lv_color_t* color_p) { uint16_t y1, y2, width, height = 0; ulTaskNotifyTake(pdTRUE, 200); - // NOtification is still needed (even if there is a mutex on SPI) because of the DataCommand pin - // which cannot be set/clear during a transfert. + // Notification is still needed (even if there is a mutex on SPI) because of the DataCommand pin + // which cannot be set/clear during a transfer. if ((scrollDirection == LittleVgl::FullRefreshDirections::Down) && (area->y2 == visibleNbLines - 1)) { writeOffset = ((writeOffset + totalNbLines) - visibleNbLines) % totalNbLines; diff --git a/src/displayapp/fonts/generate.py b/src/displayapp/fonts/generate.py index f0af506c..c172df0c 100755 --- a/src/displayapp/fonts/generate.py +++ b/src/displayapp/fonts/generate.py @@ -43,7 +43,7 @@ def main(): if not os.path.exists(args.config): sys.exit(f'Error: the config file {args.config} does not exist.') if not os.access(args.config, os.R_OK): - sys.exit(f'Error: the config file {args.config} is not accessable (permissions?).') + sys.exit(f'Error: the config file {args.config} is not accessible (permissions?).') with open(args.config, 'r') as fd: data = json.load(fd) diff --git a/src/displayapp/screens/Screen.h b/src/displayapp/screens/Screen.h index 04bb152c..e72a2368 100644 --- a/src/displayapp/screens/Screen.h +++ b/src/displayapp/screens/Screen.h @@ -35,7 +35,7 @@ namespace Pinetime { private: T value {}; // NSDMI - default initialise type - bool isUpdated {true}; // NSDMI - use brace initilisation + bool isUpdated {true}; // NSDMI - use brace initialisation }; class Screen { diff --git a/src/drivers/Bma421_C/bma4.c b/src/drivers/Bma421_C/bma4.c index 59e2a72e..84721473 100644 --- a/src/drivers/Bma421_C/bma4.c +++ b/src/drivers/Bma421_C/bma4.c @@ -621,7 +621,7 @@ static int8_t get_average_of_sensor_data(uint8_t accel_en, * * @param[in] accel_en : Variable to store status of accel * @param[in] accel_g_axis : Accel axis to FOC - * @param[in] avg_foc_data : Average value of sensor sample datas + * @param[in] avg_foc_data : Average value of sensor sample data * @param[in] dev : Structure instance of bma4_dev. * * @return Result of API execution status @@ -637,7 +637,7 @@ static int8_t validate_foc_position(uint8_t accel_en, /*! * @brief This internal API validates accel FOC axis given as input * - * @param[in] avg_foc_data : Average value of sensor sample datas + * @param[in] avg_foc_data : Average value of sensor sample data * @param[in] dev : Structure instance of bma4_dev. * * @return Result of API execution status diff --git a/src/drivers/Bma421_C/bma4_defs.h b/src/drivers/Bma421_C/bma4_defs.h index 2db99c00..45e49208 100644 --- a/src/drivers/Bma421_C/bma4_defs.h +++ b/src/drivers/Bma421_C/bma4_defs.h @@ -259,7 +259,7 @@ #define BMA4_ACCEL_RANGE_8G UINT8_C(2) #define BMA4_ACCEL_RANGE_16G UINT8_C(3) -/**\name CONDITION CHECK FOR READING AND WRTING DATA*/ +/**\name CONDITION CHECK FOR READING AND WRITING DATA*/ #define BMA4_MAX_VALUE_FIFO_FILTER UINT8_C(1) #define BMA4_MAX_VALUE_SPI3 UINT8_C(1) #define BMA4_MAX_VALUE_SELFTEST_AMP UINT8_C(1) diff --git a/src/sdk_config.h b/src/sdk_config.h index 7634dca1..27c3852e 100644 --- a/src/sdk_config.h +++ b/src/sdk_config.h @@ -1224,7 +1224,7 @@ // <q> PM_SERVICE_CHANGED_ENABLED - Enable/disable the service changed management for GATT server in Peer Manager. -// <i> If not using a GATT server, or using a server wihout a service changed characteristic, +// <i> If not using a GATT server, or using a server without a service changed characteristic, // <i> disable this to save code space. #ifndef PM_SERVICE_CHANGED_ENABLED @@ -7667,7 +7667,7 @@ #endif // <e> USE_COMP - Use the comparator to implement the capacitive sensor driver. -// <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation. +// <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a variation. //========================================================== #ifndef USE_COMP #define USE_COMP 0 @@ -8200,7 +8200,7 @@ #define NRF_LOG_DEFAULT_LEVEL 3 #endif -// <q> NRF_LOG_DEFERRED - Enable deffered logger. +// <q> NRF_LOG_DEFERRED - Enable deferred logger. // <i> Log data is buffered and can be processed in idle. @@ -11620,7 +11620,7 @@ #define NRF_SDH_ANT_OBSERVER_PRIO_LEVELS 2 #endif -// <h> ANT Observers priorities - Invididual priorities +// <h> ANT Observers priorities - Individual priorities //========================================================== // <o> ANT_BPWR_ANT_OBSERVER_PRIO @@ -11696,7 +11696,7 @@ // <h> BLE Stack configuration - Stack configuration parameters // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set. -// <i> Other libraries might depend on these values; keep them up-to-date even if you are not explicitely calling @ref +// <i> Other libraries might depend on these values; keep them up-to-date even if you are not explicitly calling @ref // nrf_sdh_ble_default_cfg_set. //========================================================== // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251> @@ -11766,7 +11766,7 @@ #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4 #endif -// <h> BLE Observers priorities - Invididual priorities +// <h> BLE Observers priorities - Individual priorities //========================================================== // <o> BLE_ADV_BLE_OBSERVER_PRIO @@ -12302,7 +12302,7 @@ #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2 #endif -// <h> State Observers priorities - Invididual priorities +// <h> State Observers priorities - Individual priorities //========================================================== // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO @@ -12329,7 +12329,7 @@ // </h> //========================================================== -// <h> Stack Event Observers priorities - Invididual priorities +// <h> Stack Event Observers priorities - Individual priorities //========================================================== // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO @@ -12383,7 +12383,7 @@ #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2 #endif -// <h> SoC Observers priorities - Invididual priorities +// <h> SoC Observers priorities - Individual priorities //========================================================== // <o> BLE_ADV_SOC_OBSERVER_PRIO diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index a429c42e..c55288c7 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -456,7 +456,7 @@ void SystemTask::Work() { if (isBleDiscoveryTimerRunning) { if (bleDiscoveryTimer == 0) { isBleDiscoveryTimerRunning = false; - // Services discovery is deffered from 3 seconds to avoid the conflicts between the host communicating with the + // Services discovery is deferred from 3 seconds to avoid the conflicts between the host communicating with the // target and vice-versa. I'm not sure if this is the right way to handle this... nimbleController.StartDiscovery(); } else { |