Fix various typos
Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user