From db936f8a200de314b7f4df7ab77e75ebb4c1b114 Mon Sep 17 00:00:00 2001 From: James Carr <70200140+lesamouraipourpre@users.noreply.github.com> Date: Sat, 18 Sep 2021 21:04:45 +0100 Subject: [PATCH 1/2] bitmaptools.__init__ minor update Update the error message in bitmaptools_readinto() to match the code. --- shared-bindings/bitmaptools/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/bitmaptools/__init__.c b/shared-bindings/bitmaptools/__init__.c index bd15985838..4e14a061f0 100644 --- a/shared-bindings/bitmaptools/__init__.c +++ b/shared-bindings/bitmaptools/__init__.c @@ -563,7 +563,7 @@ STATIC mp_obj_t bitmaptools_readinto(size_t n_args, const mp_obj_t *pos_args, mp case 32: break; default: - mp_raise_ValueError_varg(translate("invalid bits_per_pixel %d, must be, 1, 4, 8, 16, 24, or 32"), bits_per_pixel); + mp_raise_ValueError_varg(translate("invalid bits_per_pixel %d, must be, 1, 2, 4, 8, 16, 24, or 32"), bits_per_pixel); } bool reverse_pixels_in_element = args[ARG_reverse_pixels_in_element].u_bool; From ca9154421a7c91aefc85081bb79c429f0e7da5f4 Mon Sep 17 00:00:00 2001 From: James Carr Date: Sat, 18 Sep 2021 21:40:27 +0100 Subject: [PATCH 2/2] Run make translate --- locale/circuitpython.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/circuitpython.pot b/locale/circuitpython.pot index f58a84917b..54a836cf18 100644 --- a/locale/circuitpython.pot +++ b/locale/circuitpython.pot @@ -3380,7 +3380,7 @@ msgstr "" #: shared-bindings/bitmaptools/__init__.c #, c-format -msgid "invalid bits_per_pixel %d, must be, 1, 4, 8, 16, 24, or 32" +msgid "invalid bits_per_pixel %d, must be, 1, 2, 4, 8, 16, 24, or 32" msgstr "" #: shared-bindings/bitmaptools/__init__.c