diff options
Diffstat (limited to 'gpio')
-rw-r--r-- | gpio/gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpio/gpio.h b/gpio/gpio.h index 3ac9b6d..d764194 100644 --- a/gpio/gpio.h +++ b/gpio/gpio.h @@ -181,7 +181,7 @@ class GPIO_t { } uint16_t get() { - return g.reg.IDR & mask1(); + return (g.reg.IDR & mask1()) >> f; } }; |