diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-03-15 14:04:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-15 14:04:55 -0400 |
| commit | 0cdb5fcfd9bb178a880bbbb1a043aa2452243e0f (patch) | |
| tree | d6624a132495475f1d8d1959eb9293aceffe6246 /supervisor/shared/board_busses.c | |
| parent | 634791acdc406d77a0b7e81f090e798fdfda91ee (diff) | |
| parent | a086631607863073919d2269e8f7b249eb41e98f (diff) | |
Merge pull request #1648 from tannewt/board_i2c_crash4.0.0-beta.4
Long live shared bus singletons
Diffstat (limited to 'supervisor/shared/board_busses.c')
| -rw-r--r-- | supervisor/shared/board_busses.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/supervisor/shared/board_busses.c b/supervisor/shared/board_busses.c index 8a1c7bf86..d77c4f331 100644 --- a/supervisor/shared/board_busses.c +++ b/supervisor/shared/board_busses.c @@ -47,7 +47,7 @@ STATIC mp_obj_t i2c_singleton = NULL; mp_obj_t board_i2c(void) { if (i2c_singleton == NULL) { - busio_i2c_obj_t *self = m_new_obj(busio_i2c_obj_t); + busio_i2c_obj_t *self = m_new_ll_obj(busio_i2c_obj_t); self->base.type = &busio_i2c_type; assert_pin_free(DEFAULT_I2C_BUS_SDA); @@ -99,7 +99,7 @@ STATIC mp_obj_t uart_singleton = NULL; mp_obj_t board_uart(void) { if (uart_singleton == NULL) { - busio_uart_obj_t *self = m_new_obj(busio_uart_obj_t); + busio_uart_obj_t *self = m_new_ll_obj(busio_uart_obj_t); self->base.type = &busio_uart_type; assert_pin_free(DEFAULT_UART_BUS_RX); |
