Skip to content

Commit 63e18cd

Browse files
authored
Merge pull request #7242 from s-ol/i2ctarget_fix
Don't block in I2CTarget.request(-1)
2 parents d4834cb + 40d35e9 commit 63e18cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/i2ctarget/I2CTarget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ STATIC mp_obj_t i2ctarget_i2c_target_request(size_t n_args, const mp_obj_t *pos_
159159

160160
bool forever = false;
161161
uint64_t timeout_end = 0;
162-
if (timeout_ms <= 0) {
162+
if (timeout_ms == 0) {
163163
forever = true;
164164
} else if (timeout_ms > 0) {
165165
timeout_end = common_hal_time_monotonic_ms() + timeout_ms;

0 commit comments

Comments
 (0)