From 6c4055bd0a2d12972f2ca1f7aeec6586b868e7d2 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Mon, 27 Jun 2022 20:01:25 -0400 Subject: [PATCH] Fix line_read --- base/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/base.h b/base/base.h index a948d58..55ddee2 100644 --- a/base/base.h +++ b/base/base.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Lum #define __BASE_H__ #include -#include +#include #define LINE_OUT 1 #define LINE_IN 0 @@ -50,7 +50,7 @@ inline void clear_line(gpio_t *line) { } inline int read_line(gpio_t *line) { - return (*(line->port) & _BV(line->addr)) > 0; + return (*(line->pin) & _BV(line->addr)) > 0; } typedef struct RNG {