Skip to content

Commit 8d785cb

Browse files
committed
fix stubs; make translate
1 parent 58573a7 commit 8d785cb

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

locale/circuitpython.pot

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-08-18 11:19-0400\n"
11+
"POT-Creation-Date: 2020-08-21 11:37-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -754,10 +754,18 @@ msgstr ""
754754
msgid "Expected a Characteristic"
755755
msgstr ""
756756

757+
#: shared-bindings/_bleio/Adapter.c
758+
msgid "Expected a DigitalInOut"
759+
msgstr ""
760+
757761
#: shared-bindings/_bleio/Characteristic.c
758762
msgid "Expected a Service"
759763
msgstr ""
760764

765+
#: shared-bindings/_bleio/Adapter.c
766+
msgid "Expected a UART"
767+
msgstr ""
768+
761769
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
762770
#: shared-bindings/_bleio/Service.c
763771
msgid "Expected a UUID"
@@ -1349,10 +1357,6 @@ msgstr ""
13491357
msgid "Pull not used when direction is output."
13501358
msgstr ""
13511359

1352-
#: ports/stm/ref/pulseout-pre-timeralloc.c
1353-
msgid "PulseOut not supported on this chip"
1354-
msgstr ""
1355-
13561360
#: ports/stm/common-hal/os/__init__.c
13571361
msgid "RNG DeInit Error"
13581362
msgstr ""
@@ -2409,6 +2413,10 @@ msgstr ""
24092413
msgid "graphic must be 2048 bytes long"
24102414
msgstr ""
24112415

2416+
#: shared-bindings/_bleio/Adapter.c
2417+
msgid "hci_uart_init not available"
2418+
msgstr ""
2419+
24122420
#: extmod/moduheapq.c
24132421
msgid "heap must be a list"
24142422
msgstr ""
@@ -2453,6 +2461,10 @@ msgstr ""
24532461
msgid "initial values must be iterable"
24542462
msgstr ""
24552463

2464+
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
2465+
msgid "initial_value length is wrong"
2466+
msgstr ""
2467+
24562468
#: py/compile.c
24572469
msgid "inline assembler must be a function"
24582470
msgstr ""
@@ -2645,6 +2657,10 @@ msgstr ""
26452657
msgid "max_length must be 0-%d when fixed_length is %s"
26462658
msgstr ""
26472659

2660+
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
2661+
msgid "max_length must be > 0"
2662+
msgstr ""
2663+
26482664
#: py/runtime.c
26492665
msgid "maximum recursion depth exceeded"
26502666
msgstr ""

shared-bindings/_bleio/Adapter.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
//| ...
7272
//|
7373

74-
//| def hci_uart_init(self, *, uart: busio.UART, rts: digitalio.DigitalInOut, cts: digitalio.DigitalInOut, baudrate: int = 115200, buffer_size: int = 256):
75-
//| On boards that do not have native BLE, you can an use HCI co-processor.
74+
//| def hci_uart_init(self, *, uart: busio.UART, rts: digitalio.DigitalInOut, cts: digitalio.DigitalInOut, baudrate: int = 115200, buffer_size: int = 256) -> None:
75+
//| """On boards that do not have native BLE, you can an use HCI co-processor.
7676
//| Call `_bleio.adapter.hci_uart_init()` passing it the uart and pins used to communicate
7777
//| with the co-processor, such as an Adafruit AirLift.
7878
//| The co-processor must have been reset and put into BLE mode beforehand
@@ -83,6 +83,8 @@
8383
//| The `_bleio.adapter` object is enabled during this call.
8484
//|
8585
//| Raises `RuntimeError` on boards with native BLE.
86+
//| """
87+
//| ...
8688
//|
8789
STATIC mp_obj_t bleio_adapter_hci_uart_init(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
8890
#if CIRCUITPY_BLEIO_HCI

0 commit comments

Comments
 (0)