Skip to content

Commit 2374b0d

Browse files
committed
Fixed whitespace issues
1 parent 9ec2245 commit 2374b0d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

shared-bindings/busdevice/I2CDevice.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
//| with device:
6262
//| device.write(bytes_read)"""
6363
//| ...
64-
//|
64+
//|
6565
STATIC mp_obj_t busdevice_i2cdevice_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
6666
busdevice_i2cdevice_obj_t *self = m_new_obj(busdevice_i2cdevice_obj_t);
6767
self->base.type = &busdevice_i2cdevice_type;
@@ -107,7 +107,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(busdevice_i2cdevice___exit___obj, 4,
107107
//| :param int start: Index to start writing at
108108
//| :param int end: Index to write up to but not include; if None, use ``len(buf)``"""
109109
//| ...
110-
//|
110+
//|
111111
STATIC void readinto(busdevice_i2cdevice_obj_t *self, mp_obj_t buffer, int32_t start, mp_int_t end) {
112112
mp_buffer_info_t bufinfo;
113113
mp_get_buffer_raise(buffer, &bufinfo, MP_BUFFER_WRITE);
@@ -131,7 +131,7 @@ STATIC mp_obj_t busdevice_i2cdevice_readinto(size_t n_args, const mp_obj_t *pos_
131131
{ MP_QSTR_start, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 0} },
132132
{ MP_QSTR_end, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = INT_MAX} },
133133
};
134-
134+
135135
busdevice_i2cdevice_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
136136

137137
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
@@ -179,7 +179,7 @@ STATIC mp_obj_t busdevice_i2cdevice_write(size_t n_args, const mp_obj_t *pos_arg
179179
{ MP_QSTR_end, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = INT_MAX} },
180180
};
181181
busdevice_i2cdevice_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
182-
182+
183183
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
184184
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
185185

@@ -210,7 +210,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(busdevice_i2cdevice_write_obj, 2, busdevice_i2cdevice
210210
//| :param int in_end: Index to write up to but not include; if None, use ``len(in_buffer)``
211211
//| """
212212
//| ...
213-
//|
213+
//|
214214
STATIC mp_obj_t busdevice_i2cdevice_write_then_readinto(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
215215
enum { ARG_out_buffer, ARG_in_buffer, ARG_out_start, ARG_out_end, ARG_in_start, ARG_in_end };
216216
static const mp_arg_t allowed_args[] = {
@@ -227,7 +227,7 @@ STATIC mp_obj_t busdevice_i2cdevice_write_then_readinto(size_t n_args, const mp_
227227
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
228228

229229
write(self, args[ARG_out_buffer].u_obj, args[ARG_out_start].u_int, args[ARG_out_end].u_int);
230-
230+
231231
readinto(self, args[ARG_in_buffer].u_obj, args[ARG_in_start].u_int, args[ARG_in_end].u_int);
232232

233233
return mp_const_none;
@@ -241,7 +241,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(busdevice_i2cdevice_write_then_readinto_obj, 3, busde
241241
//| or that the device does not support these means of probing
242242
//| """
243243
//| ...
244-
//|
244+
//|
245245
STATIC mp_obj_t busdevice_i2cdevice___probe_for_device(mp_obj_t self_in) {
246246
busdevice_i2cdevice_obj_t *self = self_in;
247247
common_hal_busdevice_i2cdevice___probe_for_device(self);
@@ -266,4 +266,4 @@ const mp_obj_type_t busdevice_i2cdevice_type = {
266266
.name = MP_QSTR_I2CDevice,
267267
.make_new = busdevice_i2cdevice_make_new,
268268
.locals_dict = (mp_obj_dict_t*)&busdevice_i2cdevice_locals_dict,
269-
};
269+
};

shared-bindings/busdevice/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
//| """Hardware accelerated external bus access
3939
//|
40-
//| The I2CDevice and SPIDevice helper classes make managing transaction state on a bus easy.
40+
//| The I2CDevice and SPIDevice helper classes make managing transaction state on a bus easy.
4141
//| For example, they manage locking the bus to prevent other concurrent access. For SPI
4242
//| devices, it manages the chip select and protocol changes such as mode. For I2C, it
4343
//| manages the device address.

shared-module/busdevice/I2CDevice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ void common_hal_busdevice_i2cdevice___probe_for_device(busdevice_i2cdevice_obj_t
8383
common_hal_busdevice_i2cdevice_unlock(self);
8484
mp_raise_ValueError_varg(translate("No I2C device at address: %x"), self->device_address);
8585
}
86-
86+
8787
common_hal_busdevice_i2cdevice_unlock(self);
88-
}
88+
}

0 commit comments

Comments
 (0)