Skip to content

Commit 284ac21

Browse files
committed
merge a message
1 parent 2315b62 commit 284ac21

File tree

1 file changed

+1
-1
lines changed
  • shared-bindings/busio

1 file changed

+1
-1
lines changed

shared-bindings/busio/I2C.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ STATIC mp_obj_t busio_i2c_writeto_then_readfrom(size_t n_args, const mp_obj_t *p
345345
const int32_t in_end = args[ARG_in_end].u_int;
346346
normalize_buffer_bounds(&in_start, in_end, &in_length);
347347
if (in_length == 0) {
348-
mp_raise_ValueError_varg(translate("%q length must be >= 1"), MP_QSTR_out_buffer);
348+
mp_raise_ValueError_varg(translate("%q length must be >= %d"), MP_QSTR_out_buffer, 1);
349349
}
350350

351351
uint8_t status = common_hal_busio_i2c_write_read(self, args[ARG_address].u_int,

0 commit comments

Comments
 (0)