|
@@ -275,8 +275,9 @@ void halIntFlow(void) {
|
|
|
timespec deltaT;
|
|
|
clock_gettime(CLOCK_REALTIME, &flowTimestep[flowIndex]);
|
|
|
timespec_diff(&flowTimestep[((flowIndex + 1) % 2)], &flowTimestep[flowIndex], &deltaT);
|
|
|
- if (sqlLogFlow(0, halGetFlow(), deltaT.tv_sec * 1000 + deltaT.tv_nsec/1000000)) {
|
|
|
- logger_error("coffee.cpp: Couldn't write brewcounter to database");
|
|
|
+
|
|
|
+ if (sqlLogFlow(1, halGetFlow(), deltaT.tv_sec * 1000 + deltaT.tv_nsec/1000000)) {
|
|
|
+ logger_error("hal.cpp: could not log flow to database!");
|
|
|
return;
|
|
|
}
|
|
|
flowIndex = (flowIndex + 1) % 2;
|