Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5cd34aca
Commit
5cd34aca
authored
May 24, 2015
by
Daniel Campora
Browse files
cc3200: Use the correct ADC channel index when creating the object.
parent
95f19b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/mods/pybadc.c
View file @
5cd34aca
...
@@ -139,7 +139,7 @@ STATIC mp_obj_t adc_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw,
...
@@ -139,7 +139,7 @@ STATIC mp_obj_t adc_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw,
}
}
// disable the callback before re-configuring
// disable the callback before re-configuring
pyb_adc_obj_t
*
self
=
&
pyb_adc_obj
[
channel
];
pyb_adc_obj_t
*
self
=
&
pyb_adc_obj
[
num
];
self
->
base
.
type
=
&
pyb_adc_type
;
self
->
base
.
type
=
&
pyb_adc_type
;
self
->
channel
=
channel
;
self
->
channel
=
channel
;
self
->
num
=
num
;
self
->
num
=
num
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment