Skip to content

Commit 40d35e9

Browse files
committed
Don't block in I2CTarget.request(-1)
Partially reverts adafruit#6985 Closes adafruit#7241
1 parent d4834cb commit 40d35e9

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)