Skip to content

Commit

Permalink
renamed the input parameter of set_id_map
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzuger committed Jan 29, 2021
1 parent 8e5a76c commit 2753e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tlc5947/tlc5947.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,17 +1183,17 @@ STATIC mp_obj_t tlc5947_tlc5947_exists(mp_obj_t self_in, mp_obj_t pid_in){
return mp_const_false;
}

STATIC mp_obj_t tlc5947_tlc5947_set_id_map(mp_obj_t self_in, mp_obj_t map){
STATIC mp_obj_t tlc5947_tlc5947_delete(mp_obj_t self_in, mp_obj_t pid_in){
tlc5947_tlc5947_obj_t *self = MP_OBJ_TO_PTR(self_in);
int pid = mp_obj_get_int(pid_in);

return mp_obj_new_bool(delete_pattern(self, pid));
}

STATIC mp_obj_t tlc5947_tlc5947_set_id_map(mp_obj_t self_in, mp_obj_t map_in){
tlc5947_tlc5947_obj_t *self = MP_OBJ_TO_PTR(self_in);
mp_obj_t *items;
mp_obj_get_array_fixed_n(map, 8, &items);
mp_obj_get_array_fixed_n(map_in, 8, &items);

for(uint32_t i = 0; i < 8; i++){
int j;
Expand Down

0 comments on commit 2753e37

Please sign in to comment.