Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Cube FW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Cube
Open-Cube FW
Commits
ac7a96b8
Commit
ac7a96b8
authored
2 weeks ago
by
Václav Jelínek
Browse files
Options
Downloads
Plain Diff
Update MP submodules
parents
d26a45fc
5f2c74b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#124190
canceled
2 weeks ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
micropython/modules/jv_motors/jv_motor_api.c
+4
-0
4 additions, 0 deletions
micropython/modules/jv_motors/jv_motor_api.c
micropython/modules/opencube_brick/battery.c
+4
-0
4 additions, 0 deletions
micropython/modules/opencube_brick/battery.c
micropython/mpy
+1
-1
1 addition, 1 deletion
micropython/mpy
with
9 additions
and
1 deletion
micropython/modules/jv_motors/jv_motor_api.c
+
4
−
0
View file @
ac7a96b8
...
...
@@ -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
;
>>>>>>>
5
f2c74b983c645399cba0b6609d20aa445351d2e
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
);
...
...
This diff is collapsed.
Click to expand it.
micropython/modules/opencube_brick/battery.c
+
4
−
0
View file @
ac7a96b8
...
...
@@ -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
;
>>>>>>>
5
f2c74b983c645399cba0b6609d20aa445351d2e
self
->
multiplier
=
1
.
0
;
// Initialise the ADC peripheral if it's not already running.
// (this check is borrowed from machine_adc.c)
...
...
This diff is collapsed.
Click to expand it.
mpy
@
af2770e0
Compare
3823aeb0
...
af2770e0
Subproject commit
3823aeb0f14c04084eba6566164d9b7dbd9e7ced
Subproject commit
af2770e02c1fcd9e6517223ae81c9a0d089a23e1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment