@@ -259,10 +259,10 @@ STATIC mp_obj_t rp2pio_statemachine_make_new(const mp_obj_type_t *type, size_t n
259
259
bufinfo .buf , bufinfo .len / 2 ,
260
260
args [ARG_frequency ].u_int ,
261
261
init_bufinfo .buf , init_bufinfo .len / 2 ,
262
- first_out_pin , args [ ARG_out_pin_count ]. u_int , args [ARG_initial_out_pin_state ].u_int , args [ARG_initial_out_pin_direction ].u_int ,
263
- first_in_pin , args [ ARG_in_pin_count ]. u_int , args [ARG_pull_in_pin_up ].u_int , args [ARG_pull_in_pin_down ].u_int ,
264
- first_set_pin , args [ ARG_set_pin_count ]. u_int , args [ARG_initial_set_pin_state ].u_int , args [ARG_initial_set_pin_direction ].u_int ,
265
- first_sideset_pin , args [ ARG_sideset_pin_count ]. u_int , args [ARG_initial_sideset_pin_state ].u_int , args [ARG_initial_sideset_pin_direction ].u_int ,
262
+ first_out_pin , out_pin_count , args [ARG_initial_out_pin_state ].u_int , args [ARG_initial_out_pin_direction ].u_int ,
263
+ first_in_pin , in_pin_count , args [ARG_pull_in_pin_up ].u_int , args [ARG_pull_in_pin_down ].u_int ,
264
+ first_set_pin , set_pin_count , args [ARG_initial_set_pin_state ].u_int , args [ARG_initial_set_pin_direction ].u_int ,
265
+ first_sideset_pin , sideset_pin_count , args [ARG_initial_sideset_pin_state ].u_int , args [ARG_initial_sideset_pin_direction ].u_int ,
266
266
args [ARG_sideset_enable ].u_bool ,
267
267
jmp_pin , jmp_pin_pull ,
268
268
0 ,
@@ -397,7 +397,6 @@ STATIC mp_obj_t rp2pio_statemachine_write(size_t n_args, const mp_obj_t *pos_arg
397
397
return mp_const_none ;
398
398
}
399
399
400
- uint8_t * original_pointer = bufinfo .buf ;
401
400
int stride_in_bytes = mp_binary_get_size ('@' , bufinfo .typecode , NULL );
402
401
if (stride_in_bytes > 4 ) {
403
402
mp_raise_ValueError (translate ("Buffer elements must be 4 bytes long or less" ));
@@ -606,7 +605,6 @@ STATIC mp_obj_t rp2pio_statemachine_readinto(size_t n_args, const mp_obj_t *pos_
606
605
return mp_const_none ;
607
606
}
608
607
609
- uint8_t * original_pointer = bufinfo .buf ;
610
608
int stride_in_bytes = mp_binary_get_size ('@' , bufinfo .typecode , NULL );
611
609
if (stride_in_bytes > 4 ) {
612
610
mp_raise_ValueError (translate ("Buffer elements must be 4 bytes long or less" ));
0 commit comments