Skip to content
Snippets Groups Projects
Commit ac7a96b8 authored by Václav Jelínek's avatar Václav Jelínek
Browse files

Update MP submodules

parents d26a45fc 5f2c74b9
No related branches found
No related tags found
No related merge requests found
Pipeline #124190 canceled
......@@ -65,6 +65,10 @@ static mp_obj_t motor_make_new(const mp_obj_type_t *type, size_t n_args, size_t
}
motor_obj_t *obj = mp_obj_malloc_with_finaliser(motor_obj_t, &motor_type);
<<<<<<< HEAD
=======
obj->base.type = type;
>>>>>>> 5f2c74b983c645399cba0b6609d20aa445351d2e
if (!reg_motor_init(&obj->motor, port, mtype, mdir == DIRECTION_CLOCKWISE)) {
m_del_obj(motor_obj_t, obj);
mp_raise_msg_varg(&mp_type_RuntimeError, MP_ERROR_TEXT("Motor port %d already opened"), port + 1);
......
......@@ -66,6 +66,10 @@ static MP_DEFINE_CONST_FUN_OBJ_1(battery_deinit_obj, battery_deinit);
// Called on Battery init
static mp_obj_t battery_make_new(const mp_obj_type_t* type, size_t n_args, size_t n_kw, const mp_obj_t* args) {
battery_obj_t *self = mp_obj_malloc_with_finaliser(battery_obj_t, &opencube_battery_type);
<<<<<<< HEAD
=======
self->base.type = type;
>>>>>>> 5f2c74b983c645399cba0b6609d20aa445351d2e
self->multiplier = 1.0;
// Initialise the ADC peripheral if it's not already running.
// (this check is borrowed from machine_adc.c)
......
Subproject commit 3823aeb0f14c04084eba6566164d9b7dbd9e7ced
Subproject commit af2770e02c1fcd9e6517223ae81c9a0d089a23e1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment