Update I2CTarget.c
Modification of the doc text of function request(). 1) The timout parameter is a keyword-only argument; so Added '*,' in the function signature; 2) for parameter timeout an integer is expected, not a float.
This commit is contained in:
parent
6f5ffd80e1
commit
d66eeaab26
@ -130,7 +130,7 @@ STATIC mp_obj_t i2ctarget_i2c_target_obj___exit__(size_t n_args, const mp_obj_t
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(i2ctarget_i2c_target___exit___obj, 4, 4, i2ctarget_i2c_target_obj___exit__);
|
||||
|
||||
//| def request(self, timeout: float = -1) -> I2CTargetRequest:
|
||||
//| def request(self, *, timeout: int = -1) -> I2CTargetRequest:
|
||||
//| """Wait for an I2C request.
|
||||
//|
|
||||
//| :param float timeout: Timeout in seconds. Zero means wait forever, a negative value means check once
|
||||
|
Loading…
x
Reference in New Issue
Block a user