File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
ports/nrf/common-hal/_bleio Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1211,6 +1211,10 @@ msgstr ""
1211
1211
msgid "Invalid AuthMode"
1212
1212
msgstr ""
1213
1213
1214
+ #: ports/nrf/common-hal/_bleio/__init__.c
1215
+ msgid "Invalid BLE parameter"
1216
+ msgstr ""
1217
+
1214
1218
#: shared-module/displayio/OnDiskBitmap.c
1215
1219
msgid "Invalid BMP file"
1216
1220
msgstr ""
@@ -2316,7 +2320,7 @@ msgstr ""
2316
2320
msgid "Unsupported format"
2317
2321
msgstr ""
2318
2322
2319
- #: ports/raspberrypi/common-hal/pulseio/PulseOut.c py/moduerrno.c
2323
+ #: py/moduerrno.c
2320
2324
msgid "Unsupported operation"
2321
2325
msgstr ""
2322
2326
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ void check_nrf_error(uint32_t err_code) {
52
52
case NRF_ERROR_TIMEOUT :
53
53
mp_raise_msg (& mp_type_TimeoutError , NULL );
54
54
return ;
55
+ case NRF_ERROR_INVALID_PARAM :
56
+ mp_raise_ValueError (translate ("Invalid BLE parameter" ));
57
+ return ;
55
58
case BLE_ERROR_INVALID_CONN_HANDLE :
56
59
mp_raise_ConnectionError (translate ("Not connected" ));
57
60
return ;
You can’t perform that action at this time.
0 commit comments