Skip to content

Commit ae03729

Browse files
committed
Set TIM4 un-reserved
* Fixes issue micropython#662
1 parent 0764302 commit ae03729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ STATIC mp_obj_t pyb_timer_make_new(const mp_obj_type_t *type, size_t n_args, siz
846846
}
847847

848848
// check if the timer is reserved
849-
if (tim_id == 1 || tim_id == 4 || tim_id == 5 || tim_id == 6) {
849+
if (tim_id == 1 || tim_id == 5 || tim_id == 6) {
850850
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "Timer(%d) is reserved", tim_id));
851851
}
852852

0 commit comments

Comments
 (0)