fix config stuff
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user