From c0581f66c7777cf1bd0b277bcb05b3603c26f86a Mon Sep 17 00:00:00 2001
From: Your Name <john.d.melton@googlemail.com>
Date: Tue, 8 Dec 2020 12:10:47 +0000
Subject: [PATCH] Fix RASPBIAN type

---
 Makefile | 2 +-
 gpio.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 76f947e..1e7b338 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ GIT_VERSION := $(shell git describe --abbrev=0 --tags)
 
 ISSUE := $(shell cat /etc/issue.net)
 ifneq ($(filter %Raspbian,$(ISSUE)),)
-	OSFLAG=-D RASPIAN
+	OSFLAG=-D RASPBAN
 endif
 
 # uncomment the following line to force 480x320 screen
diff --git a/gpio.c b/gpio.c
index af29ca0..f0930de 100644
--- a/gpio.c
+++ b/gpio.c
@@ -921,7 +921,7 @@ static int setup_line(struct gpiod_chip *chip, int offset, gboolean pullup) {
 
   config.consumer=consumer;
   config.request_type=GPIOD_LINE_REQUEST_DIRECTION_INPUT | GPIOD_LINE_REQUEST_EVENT_BOTH_EDGES;
-#ifdef RASPIAN
+#ifdef RASPBIAN
   config.flags=pullup?GPIOD_LINE_REQUEST_FLAG_ACTIVE_LOW:0;
 #else
   config.flags=pullup?GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP:GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_DOWN;
-- 
2.45.2