Skip to content

Commit fecc1bd

Browse files
committed
fix typos (partial) detected by codepell
1 parent d9fee4c commit fecc1bd

File tree

137 files changed

+253
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+253
-243
lines changed

.codespell/ignore-words.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@ ans
22
ure
33
clen
44
ser
5+
endianess
6+
pris
7+
synopsys
8+
reenable
9+
dout
10+
wel
11+
iput
12+
hsi
13+
astroid
14+
busses
15+
cyphertext
16+
dum
17+
extint

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ exclude-file = .codespell/exclude-file.txt
77
check-filenames =
88
check-hidden =
99
count =
10-
skip = .cproject,.git,./lib,./locale
10+
skip = .cproject,.git,./lib,./locale,ACKNOWLEDGEMENTS

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: codespell
1818
#args: [-w]
19-
exclude: ^locale/
19+
exclude: ^(locale/|lib/)
2020
- repo: local
2121
hooks:
2222
- id: translations

devices/ble_hci/common-hal/_bleio/Adapter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mp_obj_t common_hal_bleio_adapter_start_scan(bleio_adapter_obj_t *self, uint8_t
483483

484484
if (self->scan_results != NULL) {
485485
if (!shared_module_bleio_scanresults_get_done(self->scan_results)) {
486-
mp_raise_bleio_BluetoothError(translate("Scan already in progess. Stop with stop_scan."));
486+
mp_raise_bleio_BluetoothError(translate("Scan already in progress. Stop with stop_scan."));
487487
}
488488
self->scan_results = NULL;
489489
}

devices/ble_hci/common-hal/_bleio/Adapter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef struct _bleio_adapter_obj_t {
6565
uint16_t manufacturer;
6666
uint16_t lmp_subversion;
6767

68-
// Used to monitor advertising timeout for legacy avertising.
68+
// Used to monitor advertising timeout for legacy advertising.
6969
uint64_t advertising_start_ticks;
7070
uint64_t advertising_timeout_msecs; // If zero, do not check.
7171

devices/ble_hci/common-hal/_bleio/Connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void common_hal_bleio_connection_set_connection_interval(bleio_connection_intern
515515
// (gattc_char->char_props.write ? CHAR_PROP_WRITE : 0) |
516516
// (gattc_char->char_props.write_wo_resp ? CHAR_PROP_WRITE_NO_RESPONSE : 0);
517517

518-
// // Call common_hal_bleio_characteristic_construct() to initalize some fields and set up evt handler.
518+
// // Call common_hal_bleio_characteristic_construct() to initialize some fields and set up evt handler.
519519
// common_hal_bleio_characteristic_construct(
520520
// characteristic, m_char_discovery_service, gattc_char->handle_value, uuid,
521521
// props, SECURITY_MODE_OPEN, SECURITY_MODE_OPEN,

devices/ble_hci/common-hal/_bleio/att.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ STATIC uint8_t bleio_properties_to_ble_spec_properties(uint8_t bleio_properties)
9696
return ble_spec_properties;
9797
}
9898

99-
// FIX not currently used; reenable when used.
99+
// FIX not currently used; re-enable when used.
100100
#if 0
101101
STATIC uint8_t ble_spec_properties_to_bleio_properties(uint8_t ble_spec_properties) {
102102
uint8_t bleio_properties = 0;
@@ -964,7 +964,7 @@ static void process_read_group_req(uint16_t conn_handle, uint16_t mtu, uint8_t d
964964
// Keep track of the first one to make sure.
965965
size_t sizeof_first_service_uuid = 0;
966966

967-
// Size of a single bt_att_group_data chunk. Start with the intial size, and
967+
// Size of a single bt_att_group_data chunk. Start with the initial size, and
968968
// add the uuid size in the loop below.
969969
size_t data_length = sizeof(struct bt_att_group_data);
970970

devices/ble_hci/common-hal/_bleio/hci_include/att_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ struct bt_att_read_mult_req {
150150
uint16_t handles[];
151151
} __packed;
152152

153-
/* Read Multiple Respose */
153+
/* Read Multiple Response */
154154
#define BT_ATT_OP_READ_MULT_RSP 0x0f
155155
struct bt_att_read_mult_rsp {
156156
uint8_t _dummy[0];
@@ -243,7 +243,7 @@ struct bt_att_read_mult_vl_req {
243243
uint16_t handles[];
244244
} __packed;
245245

246-
/* Read Multiple Respose */
246+
/* Read Multiple Response */
247247
#define BT_ATT_OP_READ_MULT_VL_RSP 0x21
248248
struct bt_att_read_mult_vl_rsp {
249249
uint16_t len;

docs/library/collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Classes
1616

1717
.. function:: deque(iterable, maxlen[, flags])
1818

19-
Deques (double-ended queues) are a list-like container that support O(1)
20-
appends and pops from either side of the deque. New deques are created
19+
Dequeues (double-ended queues) are a list-like container that support O(1)
20+
appends and pops from either side of the deque. New dequeues are created
2121
using the following arguments:
2222

2323
- *iterable* must be the empty tuple, and the new deque is created empty.

examples/natmod/features1/features1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mp_obj_t mpy_init(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_obj_t *a
8888
// This must be first, it sets up the globals dict and other things
8989
MP_DYNRUNTIME_INIT_ENTRY
9090

91-
// Messages can be printed as usualy
91+
// Messages can be printed as usually
9292
mp_printf(&mp_plat_print, "initialising module self=%p\n", self);
9393

9494
// Make the functions available in the module's namespace

0 commit comments

Comments
 (0)