Skip to content

Commit ace04ef

Browse files
committed
Formatting fixes
1 parent cf97793 commit ace04ef

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ports/esp32s2/common-hal/busio/SPI.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
typedef struct {
3434
mp_obj_base_t base;
3535

36-
const mcu_pin_obj_t* MOSI;
37-
const mcu_pin_obj_t* MISO;
38-
const mcu_pin_obj_t* clock;
36+
const mcu_pin_obj_t *MOSI;
37+
const mcu_pin_obj_t *MISO;
38+
const mcu_pin_obj_t *clock;
3939

4040
spi_host_device_t host_id;
4141

shared-bindings/supervisor/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,16 @@ MP_DEFINE_CONST_FUN_OBJ_0(supervisor_ticks_ms_obj, supervisor_ticks_ms);
267267
//| ...
268268
//|
269269
STATIC mp_obj_t supervisor_get_previous_traceback(void) {
270-
//TODO is this a safe and proper way of making a heap-allocated string object that points at long-lived (and likely long and unique) data outside the heap?
270+
// TODO is this a safe and proper way of making a heap-allocated string object that points at long-lived (and likely long and unique) data outside the heap?
271271
if (prev_traceback_allocation) {
272-
size_t len = strlen((const char*)prev_traceback_allocation->ptr);
272+
size_t len = strlen((const char *)prev_traceback_allocation->ptr);
273273
if (len > 0) {
274274
mp_obj_str_t *o = m_new_obj(mp_obj_str_t);
275275
o->base.type = &mp_type_str;
276276
o->len = len;
277-
//TODO is it a good assumption that callers probably aren't going to compare this string, so skip computing the hash?
277+
// TODO is it a good assumption that callers probably aren't going to compare this string, so skip computing the hash?
278278
o->hash = 0;
279-
o->data = (const byte*)prev_traceback_allocation->ptr;
279+
o->data = (const byte *)prev_traceback_allocation->ptr;
280280
return MP_OBJ_FROM_PTR(o);
281281
}
282282
}

supervisor/shared/traceback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626

2727
#include "traceback.h"
2828

29-
supervisor_allocation* prev_traceback_allocation;
29+
supervisor_allocation *prev_traceback_allocation;

supervisor/shared/traceback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929

3030
#include "supervisor/memory.h"
3131

32-
extern supervisor_allocation* prev_traceback_allocation;
32+
extern supervisor_allocation *prev_traceback_allocation;
3333

3434
#endif // MICROPY_INCLUDED_SUPERVISOR_TRACEBACK_H

0 commit comments

Comments
 (0)