mirror of
https://github.com/eddyem/small_tel.git
synced 2026-05-07 13:27:06 +03:00
add BTA, reinhard and Hydreon sensors
This commit is contained in:
@@ -116,6 +116,7 @@ static void *mainthread(void _U_ *U){
|
||||
}
|
||||
}
|
||||
DBG("OOOOps!");
|
||||
common_kill(&sensor);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -132,6 +133,7 @@ static int init(struct sensordata_t *s, int N, time_t pollt, int fd){
|
||||
for(int i = 0; i < NS; ++i) s->values[i] = values[i];
|
||||
if(!(s->ringbuffer = sl_RB_new(BUFSIZ))){
|
||||
WARNX("Can't init ringbuffer!");
|
||||
common_kill(s);
|
||||
return -1;
|
||||
}
|
||||
return NS;
|
||||
|
||||
Reference in New Issue
Block a user