File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ports/analog/common-hal/busio Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
47
47
const mcu_pin_obj_t * sda ,
48
48
uint32_t frequency , uint32_t timeout ) {
49
49
50
- int temp , err = 0 ;
50
+ int temp = 0 ;
51
51
52
52
// Check for NULL Pointers && valid I2C settings
53
53
assert (self );
@@ -113,7 +113,7 @@ void common_hal_busio_i2c_deinit(busio_i2c_obj_t *self) {
113
113
114
114
// Probe device in I2C bus
115
115
bool common_hal_busio_i2c_probe (busio_i2c_obj_t * self , uint8_t addr ) {
116
- uint32_t int_fl0 , int_fl1 ;
116
+ uint32_t int_fl0 ;
117
117
bool ret = 0 ;
118
118
119
119
// Clear FIFOs & all interrupt flags
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
239
239
240
240
// Initialize ringbuffer
241
241
if (receiver_buffer == NULL ) {
242
- self -> ringbuf = m_malloc_without_collect (receiver_buffer_size , false );
242
+ self -> ringbuf = m_malloc_without_collect (receiver_buffer_size );
243
243
if (!ringbuf_alloc (self -> ringbuf , receiver_buffer_size )) {
244
244
m_malloc_fail (receiver_buffer_size );
245
245
mp_raise_RuntimeError (MP_ERROR_TEXT ("ERR: Could not init ringbuffer\n" ));
You can’t perform that action at this time.
0 commit comments