Skip to content

Commit 6f5e026

Browse files
committed
esp32/esp32_rmt: Don't do unnecessary check for unsigned less than zero.
1 parent 35f6c3d commit 6f5e026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/esp32_rmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ STATIC mp_obj_t esp32_rmt_write_pulses(size_t n_args, const mp_obj_t *pos_args,
209209
mp_obj_t pulses = args[1].u_obj;
210210
mp_uint_t start = args[2].u_int;
211211

212-
if (start < 0 || start > 1) {
212+
if (start > 1) {
213213
mp_raise_ValueError(MP_ERROR_TEXT("start must be 0 or 1"));
214214
}
215215

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy