aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
-rw-r--r--src/main.c5
3 files changed, 5 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3b47b1f..8148c1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*~
build/
+builder/
.vscode/
diff --git a/Makefile b/Makefile
index c913718..3623794 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ x86:
$(CC) $(CFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
geode:
- $(CC) $(CFLAGS) -m32 -mtune=geode -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
+ $(CC) $(CFLAGS) -m32 -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
copy:
scp -r build/i2sensors-armhf root@cb2:/tmp/i2sensors
diff --git a/src/main.c b/src/main.c
index 2920a2a..383884d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,6 +11,7 @@
#include <linux/i2c-dev.h>
+#include <linux/i2c.h>
#include <sys/ioctl.h>
#include "deftypes.h"
@@ -18,8 +19,8 @@
#include "hih61xx.h"
#include "hmc5883.h"
-#define VERSION 1.24
-
+#define VERSION 1.25
+
// extern void lm75_print_help(void);
// extern void lm75_read_all(const char *opts);
// extern void lm75_read_one(const char *opts);