Skip to content

Commit a69b298

Browse files
committed
Whitespace
1 parent 58b920e commit a69b298

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

shared-bindings/_canio/CAN.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ STATIC mp_obj_t canio_can_listen(size_t n_args, const mp_obj_t *pos_args, mp_map
298298
canio_match_obj_t *matches[nmatch];
299299
for (size_t i=0; i<nmatch; i++) {
300300
mp_obj_type_t *type = mp_obj_get_type(match_objects[i]);
301-
if(type != &canio_match_type) {
301+
if (type != &canio_match_type) {
302302
mp_raise_TypeError_varg(translate("expected '%q' but got '%q'"), MP_QSTR_Match, type->name);
303303
}
304304
matches[i] = MP_OBJ_TO_PTR(match_objects[i]);

shared-bindings/_canio/Listener.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(canio_listener_iter_obj, canio_listener_iter);
112112
STATIC mp_obj_t canio_listener_next(mp_obj_t self_in) {
113113
canio_listener_obj_t *self = MP_OBJ_TO_PTR(self_in);
114114
common_hal_canio_listener_check_for_deinit(self);
115-
if(common_hal_canio_listener_in_waiting(self)) {
115+
if (common_hal_canio_listener_in_waiting(self)) {
116116
return canio_listener_read(self_in);
117117
}
118118
return self;

shared-bindings/_canio/Match.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ STATIC mp_obj_t canio_match_make_new(const mp_obj_type_t *type, size_t n_args, c
5959
int address = args[ARG_address].u_int;
6060
int mask = args[ARG_mask].u_int;
6161

62-
if(address & ~address_bits) {
62+
if (address & ~address_bits) {
6363
mp_raise_ValueError_varg(translate("%q out of range"), MP_QSTR_address);
6464
}
6565

66-
if(mask & ~address_bits) {
66+
if (mask & ~address_bits) {
6767
mp_raise_ValueError_varg(translate("%q out of range"), MP_QSTR_mask);
6868
}
6969

shared-bindings/_canio/Message.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ STATIC mp_obj_t canio_message_make_new(const mp_obj_type_t *type, size_t n_args,
6767
bool specified_size = (size != (size_t)-1);
6868
bool specified_data = (args[ARG_data].u_obj != NULL);
6969

70-
if(specified_size && specified_data) {
70+
if (specified_size && specified_data) {
7171
mp_raise_TypeError(translate("specify size or data, but not both"));
7272
}
7373

@@ -82,7 +82,7 @@ STATIC mp_obj_t canio_message_make_new(const mp_obj_type_t *type, size_t n_args,
8282
data.len = 0;
8383
}
8484

85-
if(data.len > 8) {
85+
if (data.len > 8) {
8686
mp_raise_ValueError(translate("Messages limited to 8 bytes"));
8787
}
8888

@@ -130,7 +130,7 @@ STATIC mp_obj_t canio_message_data_set(const mp_obj_t self_in, const mp_obj_t da
130130
canio_message_obj_t *self = self_in;
131131
mp_buffer_info_t data;
132132
mp_get_buffer_raise(data_in, &data, MP_BUFFER_READ);
133-
if(data.len > 8) {
133+
if (data.len > 8) {
134134
mp_raise_ValueError(translate("Messages limited to 8 bytes"));
135135
}
136136
common_hal_canio_message_data_set(self, data.buf, data.len);
@@ -161,7 +161,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(canio_message_size_get_obj, canio_message_size_get);
161161
STATIC mp_obj_t canio_message_size_set(const mp_obj_t self_in, const mp_obj_t size_in) {
162162
canio_message_obj_t *self = self_in;
163163
int size = mp_obj_get_int(size_in);
164-
if(size > 8) {
164+
if (size > 8) {
165165
mp_raise_ValueError(translate("Messages limited to 8 bytes"));
166166
}
167167
common_hal_canio_message_size_set(self, size);

0 commit comments

Comments
 (0)