Don't block in I2CTarget.request(-1)

Partially reverts #6985
Closes #7241
This commit is contained in:
s-ol 2022-11-20 16:08:00 +01:00
parent d4834cb7ec
commit 40d35e9eaa
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ STATIC mp_obj_t i2ctarget_i2c_target_request(size_t n_args, const mp_obj_t *pos_
bool forever = false;
uint64_t timeout_end = 0;
if (timeout_ms <= 0) {
if (timeout_ms == 0) {
forever = true;
} else if (timeout_ms > 0) {
timeout_end = common_hal_time_monotonic_ms() + timeout_ms;