Skip to content

Commit bc4bc05

Browse files
committed
STM32 warning remove
1 parent 227af65 commit bc4bc05

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

targets/TARGET_STM/i2c_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ i2c_t *get_i2c_obj(I2C_HandleTypeDef *hi2c)
562562

563563
void i2c_reset(i2c_t *obj)
564564
{
565-
struct i2c_s *obj_s = I2C_S(obj);
566565
/* As recommended in i2c_api.h, mainly send stop */
567566
i2c_stop(obj);
568567
/* then re-init */

targets/TARGET_STM/stm_spi_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ void spi_get_capabilities(PinName ssel, bool slave, spi_capabilities_t *cap)
105105

106106
// check if given ssel pin is in the cs pinmap
107107
const PinMap *cs_pins = spi_master_cs_pinmap();
108-
PinName pin = NC;
109108
while (cs_pins->pin != NC) {
110109
if (cs_pins->pin == ssel) {
111110
#if DEVICE_SPISLAVE

0 commit comments

Comments
 (0)