everywhere: fix typos
Fix a lot of typos Signed-off-by: Nazar Kazakov <nazar.kazakov.work@gmail.com>
This commit is contained in:
parent
3b576fc688
commit
f483b1bc4c
757 changed files with 1284 additions and 1284 deletions
|
@ -199,7 +199,7 @@ config LWM2M_RD_CLIENT_ENDPOINT_NAME_MAX_LENGTH
|
|||
depends on LWM2M_RD_CLIENT_SUPPORT
|
||||
default 33
|
||||
help
|
||||
Default: room for 32 hexadeciaml digits (UUID) + NULL
|
||||
Default: room for 32 hexadecimal digits (UUID) + NULL
|
||||
|
||||
config LWM2M_RD_CLIENT_MAX_RETRIES
|
||||
int "Specify maximum number of registration retries"
|
||||
|
@ -333,7 +333,7 @@ config LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT_MULTIPLE
|
|||
depends on LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT
|
||||
select EXPERIMENTAL
|
||||
help
|
||||
Support multiple instances of LWM2M Firwmare Update Object (ID 5)
|
||||
Support multiple instances of LWM2M Firmware Update Object (ID 5)
|
||||
|
||||
config LWM2M_FIRMWARE_UPDATE_OBJ_INSTANCE_COUNT
|
||||
int "Maximum # of LWM2M Firmware update object instances"
|
||||
|
|
|
@ -141,7 +141,7 @@ static int sock_nfds;
|
|||
|
||||
static struct lwm2m_block_context block1_contexts[NUM_BLOCK1_CONTEXT];
|
||||
|
||||
/* write-attribute related definitons */
|
||||
/* write-attribute related definitions */
|
||||
static const char * const LWM2M_ATTR_STR[] = { "pmin", "pmax",
|
||||
"gt", "lt", "st" };
|
||||
static const uint8_t LWM2M_ATTR_LEN[] = { 4, 4, 2, 2, 2 };
|
||||
|
@ -351,7 +351,7 @@ static int update_attrs(void *ref, struct notification_attrs *out)
|
|||
out->st = write_attr_pool[i].float_val;
|
||||
break;
|
||||
default:
|
||||
LOG_ERR("Unrecognize attr: %d",
|
||||
LOG_ERR("Unrecognized attr: %d",
|
||||
write_attr_pool[i].type);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -2387,12 +2387,12 @@ static int lwm2m_engine_observer_timestamp_update(sys_slist_t *observer,
|
|||
/* Resource Update on going skip this*/
|
||||
continue;
|
||||
}
|
||||
/* Compare Obervation node path to updated one */
|
||||
/* Compare Observation node path to updated one */
|
||||
if (!lwm2m_notify_observer_list(&obs->path_list, path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Read Atributes after validation Path */
|
||||
/* Read Attributes after validation Path */
|
||||
ret = engine_observe_attribute_list_get(&obs->path_list, &nattrs, srv_obj_inst);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
|
@ -4714,7 +4714,7 @@ static int handle_request(struct coap_packet *request,
|
|||
}
|
||||
|
||||
if ((code & COAP_REQUEST_MASK) == COAP_METHOD_GET) {
|
||||
/* Normal Obeservation Request or Cancel */
|
||||
/* Normal Observation Request or Cancel */
|
||||
r = lwm2m_engine_observation_handler(msg, observe, accept,
|
||||
false);
|
||||
if (r < 0) {
|
||||
|
@ -4985,7 +4985,7 @@ static void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx,
|
|||
if (msg->acknowledged) {
|
||||
r = lwm2m_response_promote_to_con(msg);
|
||||
if (r < 0) {
|
||||
LOG_ERR("Failed to promote reponse to CON: %d",
|
||||
LOG_ERR("Failed to promote response to CON: %d",
|
||||
r);
|
||||
lwm2m_reset_message(msg, true);
|
||||
return;
|
||||
|
@ -5952,7 +5952,7 @@ int lwm2m_engine_add_path_to_list(sys_slist_t *lwm2m_path_list, sys_slist_t *lwm
|
|||
entry->path.obj_inst_id == path->obj_inst_id &&
|
||||
entry->path.res_id > path->res_id) {
|
||||
/*
|
||||
* Object ID and Object Intance id same
|
||||
* Object ID and Object Instance id same
|
||||
* but Resource ID is smaller
|
||||
*/
|
||||
add_before_current = true;
|
||||
|
@ -5961,7 +5961,7 @@ int lwm2m_engine_add_path_to_list(sys_slist_t *lwm2m_path_list, sys_slist_t *lwm
|
|||
entry->path.res_id == path->res_id &&
|
||||
entry->path.res_inst_id > path->res_inst_id) {
|
||||
/*
|
||||
* Object ID, Object Intance id & Resource ID same
|
||||
* Object ID, Object Instance id & Resource ID same
|
||||
* but Resource instance ID is smaller
|
||||
*/
|
||||
add_before_current = true;
|
||||
|
@ -6096,7 +6096,7 @@ int lwm2m_perform_composite_read_op(struct lwm2m_message *msg, uint16_t content_
|
|||
/* find first obj_inst with path's obj_id */
|
||||
obj_inst = next_engine_obj_inst(msg->path.obj_id, -1);
|
||||
} else {
|
||||
/* Read rooth Path */
|
||||
/* Read root Path */
|
||||
ret = lwm2m_perform_composite_read_root(msg, &num_read);
|
||||
if (ret == -ENOMEM) {
|
||||
LOG_ERR("Supported message size is too small for read root");
|
||||
|
|
|
@ -50,7 +50,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
|||
static struct lwm2m_engine_obj portfolio;
|
||||
static struct lwm2m_engine_obj_field fields[] = {
|
||||
OBJ_FIELD_DATA(PORTFOLIO_IDENTITY_ID, RW, STRING), /* Mandatory, multi-instance */
|
||||
OBJ_FIELD_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID), /* Optional, ingle-instance */
|
||||
OBJ_FIELD_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID), /* Optional, single-instance */
|
||||
OBJ_FIELD_DATA(PORTFOLIO_AUTH_DATA_ID, R_OPT, OPAQUE), /* Optional, multi-instance */
|
||||
OBJ_FIELD_DATA(PORTFOLIO_AUTH_STATUS_ID, R_OPT, U8) /* Optional, single-instance*/
|
||||
};
|
||||
|
|
|
@ -204,7 +204,7 @@ int lwm2m_security_index_to_inst_id(int index)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* not instanstiated */
|
||||
/* not instantiated */
|
||||
if (!inst[index].obj) {
|
||||
return -ENOENT;
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ static void json_add_char(struct lwm2m_input_context *in,
|
|||
}
|
||||
}
|
||||
|
||||
/* Simlified JSON style reader for reading in values from a LWM2M JSON string */
|
||||
/* Simplified JSON style reader for reading in values from a LWM2M JSON string */
|
||||
static int json_next_token(struct lwm2m_input_context *in,
|
||||
struct json_in_formatter_data *fd)
|
||||
{
|
||||
|
@ -248,7 +248,7 @@ static int json_next_token(struct lwm2m_input_context *in,
|
|||
}
|
||||
}
|
||||
|
||||
/* OK if cont == 0 othewise we failed */
|
||||
/* OK if cont == 0 otherwise we failed */
|
||||
return (cont == 0U);
|
||||
}
|
||||
|
||||
|
@ -799,7 +799,7 @@ static int get_objlnk(struct lwm2m_input_context *in,
|
|||
total_len = len;
|
||||
value->obj_id = (uint16_t)tmp;
|
||||
|
||||
len++; /* +1 for ':' delimeter. */
|
||||
len++; /* +1 for ':' delimiter. */
|
||||
fd->value_offset += len;
|
||||
|
||||
len = read_int(in, &tmp, false);
|
||||
|
|
|
@ -381,7 +381,7 @@ static int get_objlnk(struct lwm2m_input_context *in,
|
|||
total_len = len;
|
||||
value->obj_id = (uint16_t)tmp;
|
||||
|
||||
/* Skip ':' delimeter. */
|
||||
/* Skip ':' delimiter. */
|
||||
total_len++;
|
||||
in->offset++;
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ static int json_next_token(struct lwm2m_input_context *in, struct json_in_format
|
|||
}
|
||||
}
|
||||
|
||||
/* OK if cont == 0 othewise we failed */
|
||||
/* OK if cont == 0 otherwise we failed */
|
||||
return (cont == 0U);
|
||||
}
|
||||
|
||||
|
@ -1025,7 +1025,7 @@ static int get_objlnk(struct lwm2m_input_context *in, struct lwm2m_objlnk *value
|
|||
total_len = len;
|
||||
value->obj_id = (uint16_t)tmp;
|
||||
|
||||
len++; /* +1 for ':' delimeter. */
|
||||
len++; /* +1 for ':' delimiter. */
|
||||
fd->value_offset += len;
|
||||
|
||||
len = read_int(in, &tmp, false);
|
||||
|
|
|
@ -19,7 +19,7 @@ int do_read_op_senml_json(struct lwm2m_message *msg);
|
|||
/* General Write single Path operation */
|
||||
int do_write_op_senml_json(struct lwm2m_message *msg);
|
||||
|
||||
/* Send opearation builder */
|
||||
/* Send operation builder */
|
||||
int do_send_op_senml_json(struct lwm2m_message *msg, sys_slist_t *lwm2m_path_list);
|
||||
/* API for call composite READ from engine */
|
||||
int do_composite_read_op_senml_json(struct lwm2m_message *msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue