if (status == STATUS_ERROR)
{
- FCGI_RejectJSON(context);
+ FCGI_RejectJSON(context, "Invalid input parameters");
return;
}
}
}
- while (amount_read == SENSOR_QUERYBUFSIZ);
+ while (amount_read > 0);
pthread_mutex_unlock(&(sensor->mutex));
// end critical section
break;