Skip to content

Instantly share code, notes, and snippets.

View dbasden's full-sized avatar

David Basden dbasden

  • Canberra, Australia
View GitHub Profile
#include <iostream>
#include <cstdint>
#include <GL/glew.h>
#include "SDL.h"
#define INITIAL_WINDOW_WIDTH 600
#define INITIAL_WINDOW_HEIGHT 600
static inline void bailSDL(char *msg) {
@dbasden
dbasden / hackish_atof_fix.patch
Last active November 10, 2019 07:24
hackish_atof_fix.patch
diff --git a/ui.c b/ui.c
index 27519aa..d265d74 100644
--- a/ui.c
+++ b/ui.c
@@ -24,6 +24,7 @@
#include "nanovna.h"
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
@dbasden
dbasden / rtlsdr-fc0012.diff
Created March 23, 2012 15:41
fc0012 for rtl-sdr (updated for saner reg values, GPIO handling and gain control)
diff --git a/src/Makefile b/src/Makefile
index 4f66cf6..5cc3414 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,9 +1,9 @@
LDFLAGS=`pkg-config --libs libusb-1.0`
-CFLAGS=-Wall -O2 `pkg-config --cflags libusb-1.0`
+CFLAGS=-Wall -DDEBUG -O2 `pkg-config --cflags libusb-1.0`
all: rtl-sdr