Commit 9c2231f4 authored by Damien George's avatar Damien George

esp32/esp32_rmt: Don't do unnecessary check for unsigned less than zero.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 9b908821
......@@ -209,7 +209,7 @@ STATIC mp_obj_t esp32_rmt_write_pulses(size_t n_args, const mp_obj_t *pos_args,
mp_obj_t pulses = args[1].u_obj;
mp_uint_t start = args[2].u_int;
if (start < 0 || start > 1) {
if (start > 1) {
mp_raise_ValueError(MP_ERROR_TEXT("start must be 0 or 1"));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment