Skip to content

Commit 0590f27

Browse files
committed
Compiler warning fixed
1 parent e3753df commit 0590f27

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

STM32F1/cores/maple/libmaple/gpio_f1.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ gpio_pin_mode gpio_get_mode(gpio_dev *dev, uint8 pin) {
142142
gpio_reg_map *regs = dev->regs;
143143
__io uint32 *cr = &regs->CRL + (pin >> 3);
144144
uint32 shift = (pin & 0x7) * 4;
145-
uint32 tmp = *cr;
146145

147146
uint32 crMode = (*cr>>shift) & 0x0F;
148147

0 commit comments

Comments
 (0)