Skip to content

Commit 5ca33de

Browse files
committed
fix: warning: unused variable 'pin'
Signed-off-by: Oleg Kokorin <[email protected]>
1 parent 746fd4f commit 5ca33de

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

1 file changed

+1
-1
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/spi_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void spi_get_capabilities(PinName ssel, bool slave, spi_capabilities_t *cap)
212212

213213
// check if given ssel pin is in the cs pinmap
214214
const PinMap *cs_pins = spi_master_cs_pinmap();
215-
PinName pin = NC;
215+
// PinName pin = NC;
216216
while (cs_pins->pin != NC) {
217217
if (cs_pins->pin == ssel) {
218218
#if DEVICE_SPISLAVE

0 commit comments

Comments
 (0)