fix getting protocol

This commit is contained in:
Jeff Epler 2023-09-22 13:53:20 -05:00
parent e1af819a91
commit ea5bc12a07
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -511,7 +511,7 @@ mp_float_t synthio_block_slot_get(synthio_block_slot_t *slot) {
block->last_tick = synthio_global_tick;
// previously verified by call to mp_proto_get in synthio_block_assign_slot
const synthio_block_proto_t *p = mp_type_get_protocol_slot(mp_obj_get_type(slot->obj));
const synthio_block_proto_t *p = MP_OBJ_TYPE_GET_SLOT(mp_obj_get_type(slot->obj), protocol);
mp_float_t value = p->tick(slot->obj);
block->value = value;
return value;