fix config stuff

This commit is contained in:
Wolfgang Hottgenroth
2019-10-16 11:15:10 +01:00
parent 0a39c5c85c
commit 34f6066ef1
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include <wiringPi.h>
#include <wiringPiSPI.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <libconfig.h>
@ -49,11 +50,13 @@ void readConfig() {
exit(-1);
}
}
void start() {
wiringPiISR(INTR_IN, INT_EDGE_RISING, isr);
}
int main (void) {
readConfig();
init();
ls7366rInit(SPI_CHAN);
influxInit(&cfg);