Commit 42d316c0 authored by Axel Auweter's avatar Axel Auweter
Browse files

Fix a warning.

parent 1bd046cb
......@@ -131,7 +131,8 @@ int main(int argc, char** argv) {
if (sensorList[i].nextRead >= nextWakeUp - sensorList[i].interval / 100
&& sensorList[i].nextRead <= nextWakeUp + sensorList[i].interval / 100) {
fseek(sensorList[i].file, 0, SEEK_SET);
fread(buf, 1024, 1, sensorList[i].file);
size_t nelem = fread(buf, 1024, 1, sensorList[i].file);
(void)nelem;
buf[strlen(buf)-1] = 0;
cout << "[" << currentTime << "] " << sensorList[i].name << ": \"" << buf << "\""<< endl;
stringstream ss;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment