modules/spi_display: Fix display args.

Arguments were parsed/used in the wrong order.
This commit is contained in:
iabdalkader 2023-10-23 16:36:40 +02:00
parent 1ba74580b7
commit 1cd9a8ae68

View File

@ -352,7 +352,7 @@ static void spi_display_deinit(py_display_obj_t *self) {
}
mp_obj_t spi_display_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
enum { ARG_width, ARG_height, ARG_refresh, ARG_triple_buffer, ARG_bgr, ARG_byte_swap};
enum { ARG_width, ARG_height, ARG_refresh, ARG_bgr, ARG_byte_swap, ARG_triple_buffer };
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_width, MP_ARG_INT, {.u_int = 128 } },
{ MP_QSTR_height, MP_ARG_INT, {.u_int = 160 } },