Skip to content

Commit 6472aad

Browse files
authored
Merge branch 'adafruit:main' into rm690b0
2 parents 5cdcf88 + 89a726e commit 6472aad

Some content is hidden

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

58 files changed

+1156
-400
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void common_hal_bleio_characteristic_set_cccd(bleio_characteristic_obj_t *self,
180180
}
181181

182182
const uint16_t conn_handle = bleio_connection_get_conn_handle(self->service->connection);
183-
common_hal_bleio_check_connected(conn_handle);
183+
bleio_check_connected(conn_handle);
184184

185185
uint16_t cccd_value =
186186
(notify ? CCCD_NOTIFY : 0) |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ typedef struct {
6161
uint8_t disconnect_reason;
6262
} bleio_connection_obj_t;
6363

64+
void bleio_check_connected(uint16_t conn_handle);
6465
uint16_t bleio_connection_get_conn_handle(bleio_connection_obj_t *self);
6566
mp_obj_t bleio_connection_new_from_internal(bleio_connection_internal_t *connection);
6667
bleio_connection_internal_t *bleio_conn_handle_to_connection(uint16_t conn_handle);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bleio_adapter_obj_t *common_hal_bleio_allocate_adapter_or_raise(void) {
8484
return &common_hal_bleio_adapter_obj;
8585
}
8686

87-
void common_hal_bleio_check_connected(uint16_t conn_handle) {
87+
void bleio_check_connected(uint16_t conn_handle) {
8888
if (conn_handle == BLE_CONN_HANDLE_INVALID) {
8989
mp_raise_ConnectionError(MP_ERROR_TEXT("Not connected"));
9090
}

locale/circuitpython.pot

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ msgstr ""
477477
msgid "AP could not be started"
478478
msgstr ""
479479

480-
#: shared-bindings/_bleio/Address.c shared-bindings/ipaddress/IPv4Address.c
480+
#: shared-bindings/ipaddress/IPv4Address.c
481481
#, c-format
482482
msgid "Address must be %d bytes long"
483483
msgstr ""
@@ -674,11 +674,6 @@ msgstr ""
674674
msgid "Brightness not adjustable"
675675
msgstr ""
676676

677-
#: shared-bindings/_bleio/UUID.c
678-
#, c-format
679-
msgid "Buffer + offset too small %d %d %d"
680-
msgstr ""
681-
682677
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
683678
msgid "Buffer elements must be 4 bytes long or less"
684679
msgstr ""
@@ -721,10 +716,6 @@ msgstr ""
721716
msgid "Bus pin %d is already in use"
722717
msgstr ""
723718

724-
#: shared-bindings/_bleio/UUID.c
725-
msgid "Byte buffer must be 16 bytes."
726-
msgstr ""
727-
728719
#: shared-bindings/aesio/aes.c
729720
msgid "CBC blocks must be multiples of 16 bytes"
730721
msgstr ""
@@ -1032,12 +1023,18 @@ msgstr ""
10321023
msgid "Failed to buffer the sample"
10331024
msgstr ""
10341025

1026+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
1027+
msgid "Failed to connect"
1028+
msgstr ""
1029+
10351030
#: ports/espressif/common-hal/_bleio/Adapter.c
10361031
#: ports/nordic/common-hal/_bleio/Adapter.c
1032+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10371033
msgid "Failed to connect: internal error"
10381034
msgstr ""
10391035

10401036
#: ports/nordic/common-hal/_bleio/Adapter.c
1037+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10411038
msgid "Failed to connect: timeout"
10421039
msgstr ""
10431040

@@ -2253,10 +2250,6 @@ msgstr ""
22532250
msgid "USB error"
22542251
msgstr ""
22552252

2256-
#: shared-bindings/_bleio/UUID.c
2257-
msgid "UUID integer value must be 0-0xffff"
2258-
msgstr ""
2259-
22602253
#: shared-bindings/_bleio/UUID.c
22612254
msgid "UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
22622255
msgstr ""
@@ -3399,10 +3392,6 @@ msgstr ""
33993392
msgid "initial values must be iterable"
34003393
msgstr ""
34013394

3402-
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
3403-
msgid "initial_value length is wrong"
3404-
msgstr ""
3405-
34063395
#: py/compile.c
34073396
msgid "inline assembler must be a function"
34083397
msgstr ""
@@ -3814,7 +3803,6 @@ msgid "non-hex digit"
38143803
msgstr ""
38153804

38163805
#: ports/nordic/common-hal/_bleio/Adapter.c
3817-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
38183806
msgid "non-zero timeout must be > 0.01"
38193807
msgstr ""
38203808

@@ -4298,7 +4286,6 @@ msgid "timeout duration exceeded the maximum supported value"
42984286
msgstr ""
42994287

43004288
#: ports/nordic/common-hal/_bleio/Adapter.c
4301-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
43024289
msgid "timeout must be < 655.35 secs"
43034290
msgstr ""
43044291

locale/cs.po

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ msgstr "pow() nepodporuje 3 argumenty"
487487
msgid "AP could not be started"
488488
msgstr "AP nemohl být spuštěn"
489489

490-
#: shared-bindings/_bleio/Address.c shared-bindings/ipaddress/IPv4Address.c
490+
#: shared-bindings/ipaddress/IPv4Address.c
491491
#, c-format
492492
msgid "Address must be %d bytes long"
493493
msgstr "Adresa musí být %d bajtů dlouhá"
@@ -686,11 +686,6 @@ msgstr "RX a TX jsou vyžadovány pro kontrolu toku"
686686
msgid "Brightness not adjustable"
687687
msgstr "Jas není nastavitelný"
688688

689-
#: shared-bindings/_bleio/UUID.c
690-
#, c-format
691-
msgid "Buffer + offset too small %d %d %d"
692-
msgstr "Vyrovnávací paměť + offset je příliš malý %d %d %d"
693-
694689
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
695690
msgid "Buffer elements must be 4 bytes long or less"
696691
msgstr "Prvky bufferu musí být 4 bajty dlouhé nebo méně"
@@ -733,10 +728,6 @@ msgstr "Buffer příliš malý"
733728
msgid "Bus pin %d is already in use"
734729
msgstr "Sběrnicový pin %d je již používán"
735730

736-
#: shared-bindings/_bleio/UUID.c
737-
msgid "Byte buffer must be 16 bytes."
738-
msgstr "Buffer musí být dlouhý 16 bajtů."
739-
740731
#: shared-bindings/aesio/aes.c
741732
msgid "CBC blocks must be multiples of 16 bytes"
742733
msgstr "Bloky CBC musí být násobky 16 bajtů"
@@ -1047,12 +1038,18 @@ msgstr "Nepodařilo se alokovat paměť pro wifi scan"
10471038
msgid "Failed to buffer the sample"
10481039
msgstr "Nepodařilo se nabufferovat sample"
10491040

1041+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
1042+
msgid "Failed to connect"
1043+
msgstr ""
1044+
10501045
#: ports/espressif/common-hal/_bleio/Adapter.c
10511046
#: ports/nordic/common-hal/_bleio/Adapter.c
1047+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10521048
msgid "Failed to connect: internal error"
10531049
msgstr "Připojení se nezdařilo: interní chyba"
10541050

10551051
#: ports/nordic/common-hal/_bleio/Adapter.c
1052+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10561053
msgid "Failed to connect: timeout"
10571054
msgstr "Nepodařilo se připojit: časový limit"
10581055

@@ -2271,10 +2268,6 @@ msgstr "USB zařízení používají příliš mnoho názvů rozhraní."
22712268
msgid "USB error"
22722269
msgstr "Chyba USB"
22732270

2274-
#: shared-bindings/_bleio/UUID.c
2275-
msgid "UUID integer value must be 0-0xffff"
2276-
msgstr "UUID integer musí být 0-0xffff"
2277-
22782271
#: shared-bindings/_bleio/UUID.c
22792272
msgid "UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
22802273
msgstr "UUID řetězec neodpovídá 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
@@ -3422,10 +3415,6 @@ msgstr ""
34223415
msgid "initial values must be iterable"
34233416
msgstr "výchozí hodnoty musí být iterovatelné"
34243417

3425-
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
3426-
msgid "initial_value length is wrong"
3427-
msgstr "délka initial_value je chybná"
3428-
34293418
#: py/compile.c
34303419
msgid "inline assembler must be a function"
34313420
msgstr ""
@@ -3837,7 +3826,6 @@ msgid "non-hex digit"
38373826
msgstr ""
38383827

38393828
#: ports/nordic/common-hal/_bleio/Adapter.c
3840-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
38413829
msgid "non-zero timeout must be > 0.01"
38423830
msgstr "nenulový timeout musí být > 0.01"
38433831

@@ -4321,7 +4309,6 @@ msgid "timeout duration exceeded the maximum supported value"
43214309
msgstr "timeout překročil maximální podporovanou hodnotu"
43224310

43234311
#: ports/nordic/common-hal/_bleio/Adapter.c
4324-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
43254312
msgid "timeout must be < 655.35 secs"
43264313
msgstr "timeout musí být < 655.35 s"
43274314

@@ -4614,6 +4601,19 @@ msgstr ""
46144601
msgid "zi must be of shape (n_section, 2)"
46154602
msgstr ""
46164603

4604+
#, c-format
4605+
#~ msgid "Buffer + offset too small %d %d %d"
4606+
#~ msgstr "Vyrovnávací paměť + offset je příliš malý %d %d %d"
4607+
4608+
#~ msgid "Byte buffer must be 16 bytes."
4609+
#~ msgstr "Buffer musí být dlouhý 16 bajtů."
4610+
4611+
#~ msgid "UUID integer value must be 0-0xffff"
4612+
#~ msgstr "UUID integer musí být 0-0xffff"
4613+
4614+
#~ msgid "initial_value length is wrong"
4615+
#~ msgstr "délka initial_value je chybná"
4616+
46174617
#, c-format
46184618
#~ msgid "Invalid byte %.*s"
46194619
#~ msgstr "Špatný byte %.*s"

locale/el.po

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ msgstr "pow() με 3 παραμέτρους δεν υποστηρίζεται"
491491
msgid "AP could not be started"
492492
msgstr "AP δεν μπόρεσε να εκκινηθεί"
493493

494-
#: shared-bindings/_bleio/Address.c shared-bindings/ipaddress/IPv4Address.c
494+
#: shared-bindings/ipaddress/IPv4Address.c
495495
#, c-format
496496
msgid "Address must be %d bytes long"
497497
msgstr "Η διεύθυνση πρέπει να είναι %d bytes μεγάλη"
@@ -690,11 +690,6 @@ msgstr "Και RX και TX απαιτούνται για έλεγχο flow"
690690
msgid "Brightness not adjustable"
691691
msgstr "H φωτεινότητα δεν μπορεί να προσαρμοστεί"
692692

693-
#: shared-bindings/_bleio/UUID.c
694-
#, c-format
695-
msgid "Buffer + offset too small %d %d %d"
696-
msgstr "Buffer + offset είναι πολύ μικρά %d %d %d"
697-
698693
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
699694
msgid "Buffer elements must be 4 bytes long or less"
700695
msgstr "Στοιχεία του buffer πρέπει να είναι το πολύ 4 bytes"
@@ -737,10 +732,6 @@ msgstr "Buffer πολύ μικρός"
737732
msgid "Bus pin %d is already in use"
738733
msgstr "Bus pin %d είναι ήδη σε χρήση"
739734

740-
#: shared-bindings/_bleio/UUID.c
741-
msgid "Byte buffer must be 16 bytes."
742-
msgstr "Byte buffer πρέπει να είναι 16 bytes."
743-
744735
#: shared-bindings/aesio/aes.c
745736
msgid "CBC blocks must be multiples of 16 bytes"
746737
msgstr "CBC blocks πρέπει να είναι πολλαπλάσια του 16 bytes"
@@ -1055,12 +1046,18 @@ msgstr ""
10551046
msgid "Failed to buffer the sample"
10561047
msgstr ""
10571048

1049+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
1050+
msgid "Failed to connect"
1051+
msgstr ""
1052+
10581053
#: ports/espressif/common-hal/_bleio/Adapter.c
10591054
#: ports/nordic/common-hal/_bleio/Adapter.c
1055+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10601056
msgid "Failed to connect: internal error"
10611057
msgstr ""
10621058

10631059
#: ports/nordic/common-hal/_bleio/Adapter.c
1060+
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
10641061
msgid "Failed to connect: timeout"
10651062
msgstr ""
10661063

@@ -2275,10 +2272,6 @@ msgstr ""
22752272
msgid "USB error"
22762273
msgstr ""
22772274

2278-
#: shared-bindings/_bleio/UUID.c
2279-
msgid "UUID integer value must be 0-0xffff"
2280-
msgstr ""
2281-
22822275
#: shared-bindings/_bleio/UUID.c
22832276
msgid "UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
22842277
msgstr ""
@@ -3421,10 +3414,6 @@ msgstr ""
34213414
msgid "initial values must be iterable"
34223415
msgstr ""
34233416

3424-
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
3425-
msgid "initial_value length is wrong"
3426-
msgstr ""
3427-
34283417
#: py/compile.c
34293418
msgid "inline assembler must be a function"
34303419
msgstr ""
@@ -3836,7 +3825,6 @@ msgid "non-hex digit"
38363825
msgstr ""
38373826

38383827
#: ports/nordic/common-hal/_bleio/Adapter.c
3839-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
38403828
msgid "non-zero timeout must be > 0.01"
38413829
msgstr ""
38423830

@@ -4320,7 +4308,6 @@ msgid "timeout duration exceeded the maximum supported value"
43204308
msgstr ""
43214309

43224310
#: ports/nordic/common-hal/_bleio/Adapter.c
4323-
#: ports/zephyr-cp/common-hal/_bleio/Adapter.c
43244311
msgid "timeout must be < 655.35 secs"
43254312
msgstr ""
43264313

@@ -4613,6 +4600,13 @@ msgstr ""
46134600
msgid "zi must be of shape (n_section, 2)"
46144601
msgstr ""
46154602

4603+
#, c-format
4604+
#~ msgid "Buffer + offset too small %d %d %d"
4605+
#~ msgstr "Buffer + offset είναι πολύ μικρά %d %d %d"
4606+
4607+
#~ msgid "Byte buffer must be 16 bytes."
4608+
#~ msgstr "Byte buffer πρέπει να είναι 16 bytes."
4609+
46164610
#~ msgid "%q moved from %q to %q"
46174611
#~ msgstr "%q μετακινήθηκε από το %q στο %q"
46184612

0 commit comments

Comments
 (0)