From 9c2231f47ad1d30d3436561dfbeefd44c7a3e2f9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 6 Oct 2020 18:06:09 +1100 Subject: [PATCH] esp32/esp32_rmt: Don't do unnecessary check for unsigned less than zero. Signed-off-by: Damien George --- ports/esp32/esp32_rmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp32/esp32_rmt.c b/ports/esp32/esp32_rmt.c index 7971ca5d1c..b547af5539 100644 --- a/ports/esp32/esp32_rmt.c +++ b/ports/esp32/esp32_rmt.c @@ -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")); }