Fix line_read

This commit is contained in:
Savanni D'Gerinel 2022-06-27 20:01:25 -04:00
parent 0d9ef55b44
commit 6c4055bd0a
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Lum
#define __BASE_H__ #define __BASE_H__
#include <avr/io.h> #include <avr/io.h>
#include <avr/delay.h> #include <util/delay.h>
#define LINE_OUT 1 #define LINE_OUT 1
#define LINE_IN 0 #define LINE_IN 0
@ -50,7 +50,7 @@ inline void clear_line(gpio_t *line) {
} }
inline int read_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 { typedef struct RNG {