aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--xpad.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a3fad82..a2bc050 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ PG = -g -fomit-frame-pointer
OPTIM = -O2
# These flags are pretty much mandatory
-REQUIRED = -DNDEBUG -DINLINE=inline
+REQUIRED = -DINLINE=inline
#pick your architecture
ARCH = -march=native
diff --git a/xpad.c b/xpad.c
index 2960068..aa8b062 100644
--- a/xpad.c
+++ b/xpad.c
@@ -51,7 +51,7 @@ int xpad_init(char* pad_fifo, int pad_len)
int xpad_read_len(uint8_t* buf, int len)
{
- assert(xpad_fd != 0);
+ if (xpad_fd == 0) return 0;
ssize_t num_read = 0;